improved indentation and whitespace for markdown code blocks
All code blocks in markdown have been intended by at least 4 spaces. We add `--tab-stop=8` to all `pandoc(1)` executions in order to set a better tab stop indentation, especially for tab intended code blocks. Changed `bin/pandoc-wrapper.sh` VERSION from "1.5.3 2024-03-26" to "1.6 2024-03-31". Fixed `1991/brnstnd/sorta.README.md` so that the sorta code is code blocks. Removed unneeded paragraph group in copyright in `inc/footer.default.html`. Fixed excess whitespace after list Author on entry `index.html` page. Changed `bin/output-index-author.sh` VERSION from "1.5.2 2024-03-26" to "1.6 2024-03-31". Performed `make www` to perform the above and test under macOS. TODO: Fix the problem of the initial line of code being extra intended. TODO: Fix excess whitespace around code that is inline.
This commit is contained in:
1 parent
b84c27ce02
commit
a996f8d2b8
734 files changed
+16723
-16963
No files matched your search
@@ -1,7 +1,7 @@
|
||||
## To build:
|
||||
|
||||
```sh
|
||||
make
|
||||
make
|
||||
```
|
||||
|
||||
There is an alternate version that is slightly deobfuscated. See [alternate
|
||||
@@ -11,7 +11,7 @@ code](#alternate-code) below.
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
./zeitak < file
|
||||
./zeitak < file
|
||||
```
|
||||
|
||||
where `file` is the file to be checked for nesting errors. For example, you may
|
||||
@@ -22,7 +22,7 @@ text files that are not code.
|
||||
## Try:
|
||||
|
||||
```sh
|
||||
make test
|
||||
make test
|
||||
```
|
||||
|
||||
NOTE: the program prints an error and exits on the first nesting error so it
|
||||
@@ -39,7 +39,7 @@ understand this extremely subtle entry.
|
||||
### Alternate build:
|
||||
|
||||
```sh
|
||||
make alt
|
||||
make alt
|
||||
```
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ just to understand _18 key **characters**_ of this code.
|
||||
NOTE: if you use vim to view the code, make sure to do:
|
||||
|
||||
```
|
||||
:set tabstop=4
|
||||
:set tabstop=4
|
||||
```
|
||||
|
||||
in command mode, before looking at the code, to see the correct layout.
|
||||
@@ -93,7 +93,7 @@ around it's position.
|
||||
will be detected in the following line:
|
||||
|
||||
```c
|
||||
printf(")");
|
||||
printf(")");
|
||||
```
|
||||
|
||||
* Doesn't get confused by the [1984/anonymous](../../1984/anonymous/index.html) entry!
|
||||
@@ -105,7 +105,7 @@ printf(")");
|
||||
an error:
|
||||
|
||||
```c
|
||||
printf("\"");
|
||||
printf("\"");
|
||||
```
|
||||
|
||||
#### Obfuscation
|
||||
|
||||
@@ -132,8 +132,7 @@
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Adar_Zeitak">Adar Zeitak</a><br>
|
||||
Location: <a href="../../location.html#IL">IL</a> - <em>State of Israel</em> (<em>Israel</em>)
|
||||
<br><br></li>
|
||||
Location: <a href="../../location.html#IL">IL</a> - <em>State of Israel</em> (<em>Israel</em>)</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -142,16 +141,16 @@ Location: <a href="../../location.html#IL">IL</a> - <em>State of Israel</em> (<e
|
||||
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
|
||||
<h2 id="to-build">To build:</h2>
|
||||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span></span></code></pre></div>
|
||||
<p>There is an alternate version that is slightly deobfuscated. See <a href="#alternate-code">alternate
|
||||
code</a> below.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./zeitak</span> <span class="op"><</span> file</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a> <span class="ex">./zeitak</span> <span class="op"><</span> file</span></code></pre></div>
|
||||
<p>where <code>file</code> is the file to be checked for nesting errors. For example, you may
|
||||
try <a href="incorrect.c">incorrect.c</a> and the program itself. You may also run it on
|
||||
text files that are not code.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> test</span></code></pre></div>
|
||||
<p>NOTE: the program prints an error and exits on the first nesting error so it
|
||||
will not detect multiple issues.</p>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
@@ -159,7 +158,7 @@ will not detect multiple issues.</p>
|
||||
deobfuscated by the author. You may find reading it helpful in your attempt to
|
||||
understand this extremely subtle entry.</p>
|
||||
<h3 id="alternate-build">Alternate build:</h3>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> alt</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a> <span class="fu">make</span> alt</span></code></pre></div>
|
||||
<h3 id="alternate-use">Alternate use:</h3>
|
||||
<p>Use <code>zeitak.alt</code> as you would <code>zeitak</code> above.</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
@@ -170,7 +169,7 @@ At one point we spent
|
||||
minutes</a>
|
||||
just to understand <em>18 key <strong>characters</strong></em> of this code.</p>
|
||||
<p>NOTE: if you use vim to view the code, make sure to do:</p>
|
||||
<pre><code>:set tabstop=4</code></pre>
|
||||
<pre><code> :set tabstop=4</code></pre>
|
||||
<p>in command mode, before looking at the code, to see the correct layout.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="nesting-errors-detector">Nesting Errors Detector</h3>
|
||||
@@ -189,7 +188,7 @@ around it’s position.</p>
|
||||
<li>Ignores parenthesis inside strings or character constants, so no errors
|
||||
will be detected in the following line:</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">")"</span><span class="op">);</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a> printf<span class="op">(</span><span class="st">")"</span><span class="op">);</span></span></code></pre></div>
|
||||
<ul>
|
||||
<li>Doesn’t get confused by the <a href="../../1984/anonymous/index.html">1984/anonymous</a> entry!</li>
|
||||
</ul>
|
||||
@@ -198,7 +197,7 @@ will be detected in the following line:</li>
|
||||
<li>Escapes (e.g. <code>\"</code>) are ignored, so the following line will produce
|
||||
an error:</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb7"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">"</span><span class="sc">\"</span><span class="st">"</span><span class="op">);</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb7"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a> printf<span class="op">(</span><span class="st">"</span><span class="sc">\"</span><span class="st">"</span><span class="op">);</span></span></code></pre></div>
|
||||
<h4 id="obfuscation">Obfuscation</h4>
|
||||
<p><a href="../../years.html">IOCCC entries</a> already contain entries without digits, control-flow
|
||||
keywords and certain operators in their source. This entry has an
|
||||
|
||||
Reference in new issue
Block a user