fix improper markdown code block indenting

As per the TODO:

- [ ] Verify the markdown code blocks are properly indented

```sh
find . -name '*.md' ! -name markdown.md -print0 | xargs -0 pcregrep -M '^``.*\n[^|`\n \t]'
```

Fixed `1998/dorssel/dorssel.md` and `thanks-for-help.md`.

Performed `make quick_www` to process the above.
This commit is contained in:
Landon Curt Noll committed 2024-12-28 16:31:15 -08:00
1 parent 06d81a273e
commit 2ef3d9f1ce
4 files changed
+36 -34

No files matched your search

+5 -5
View File
@@ -474,11 +474,11 @@ this is not very pleasant, as some Morse sequences will end up having
an ASCII value < 32, i.e. they will be control codes. This would make
the initializing (encoding) string awkward. Hence I came up with the
following</p>
<pre><code>length 1: 0010010x E &gt; 00100101 (= &#39;%&#39;)
length 2: 001010xx
length 3: 00110xxx
length 4: 0100xxxx Z &gt; 01001100 (= &#39;L&#39;)
length 5: 011xxxxx 3 &gt; 01100111 (= &#39;g&#39;)</code></pre>
<pre><code> length 1: 0010010x E &gt; 00100101 (= &#39;%&#39;)
length 2: 001010xx
length 3: 00110xxx
length 4: 0100xxxx Z &gt; 01001100 (= &#39;L&#39;)
length 5: 011xxxxx 3 &gt; 01100111 (= &#39;g&#39;)</code></pre>
<p>Notice these encodings in the initialization string. Only the coding for
<code>5</code> needs an escape (<code>5 = ..... &gt; 01111111 = '\177'</code>). The way the length
is encoded still allows the encoding to be its own counter:</p>
+5 -5
View File
@@ -76,11 +76,11 @@ the initializing (encoding) string awkward. Hence I came up with the
following
```
length 1: 0010010x E > 00100101 (= '%')
length 2: 001010xx
length 3: 00110xxx
length 4: 0100xxxx Z > 01001100 (= 'L')
length 5: 011xxxxx 3 > 01100111 (= 'g')
length 1: 0010010x E > 00100101 (= '%')
length 2: 001010xx
length 3: 00110xxx
length 4: 0100xxxx Z > 01001100 (= 'L')
length 5: 011xxxxx 3 > 01100111 (= 'g')
```
Notice these encodings in the initialization string. Only the coding for
+12 -12
View File
@@ -531,7 +531,7 @@ with <code>gcc</code> - but not <code>clang</code> - or at least some versions.<
<code>-traditional-cpp</code> option conflicts with some of the other options. Thus the
<code>make alt</code> rule only uses <code>-traditional-cpp</code>.</p>
<p>To see the diff between the original and the alternate code, try:</p>
<pre class="&lt;!--sh--&gt;"><code> cd 1984/decot ; make diff_orig_alt</code></pre>
<pre class="&lt;!--sh--&gt;"><code> cd 1984/decot ; make diff_orig_alt</code></pre>
<p>Jump to: <a href="#">top</a></p>
<div id="1984_laman">
<h2 id="winning-entry-1984laman">Winning entry: <a href="1984/laman/index.html">1984/laman</a></h2>
@@ -2913,17 +2913,17 @@ included. Third the SDL1 developers thought it would be a great idea
program that uses SDL1 has to have the same args as their definition.
This program had ‘main()’ so the error message was:</p>
</blockquote>
<pre><code> thadgavin.c:60:1: error: conflicting types for &#39;SDL_main&#39;
main()
^
/opt/local/include/SDL/SDL_main.h:34:14: note: expanded from macro &#39;main&#39;
#define main SDL_main
^
/opt/local/include/SDL/SDL_main.h:35:12: note: previous declaration is here
extern int SDL_main(int argc, char *argv[]);
^
1 warning and 1 error generated.
make: *** [thadgavin_sdl] Error 1</code></pre>
<pre><code> thadgavin.c:60:1: error: conflicting types for &#39;SDL_main&#39;
main()
^
/opt/local/include/SDL/SDL_main.h:34:14: note: expanded from macro &#39;main&#39;
#define main SDL_main
^
/opt/local/include/SDL/SDL_main.h:35:12: note: previous declaration is here
extern int SDL_main(int argc, char *argv[]);
^
1 warning and 1 error generated.
make: *** [thadgavin_sdl] Error 1</code></pre>
<blockquote>
<p>Thus <code>main()</code> was changed to <code>int main(int argc, char **argv)</code>.</p>
</blockquote>
+14 -12
View File
@@ -143,7 +143,7 @@ Cody later discovered that the `make alt` rule does not work as the
To see the diff between the original and the alternate code, try:
``` <!--sh-->
cd 1984/decot ; make diff_orig_alt
cd 1984/decot ; make diff_orig_alt
```
Jump to: [top](#)
@@ -3674,19 +3674,21 @@ changed. As was noted in the log at the time:
> (but obviously it's a terrible idea) to redefine main() (!!) so that any
> program that uses SDL1 has to have the same args as their definition.
> This program had 'main()' so the error message was:
``` <!---c-->
thadgavin.c:60:1: error: conflicting types for 'SDL_main'
main()
^
/opt/local/include/SDL/SDL_main.h:34:14: note: expanded from macro 'main'
#define main SDL_main
^
/opt/local/include/SDL/SDL_main.h:35:12: note: previous declaration is here
extern int SDL_main(int argc, char *argv[]);
^
1 warning and 1 error generated.
make: *** [thadgavin_sdl] Error 1
thadgavin.c:60:1: error: conflicting types for 'SDL_main'
main()
^
/opt/local/include/SDL/SDL_main.h:34:14: note: expanded from macro 'main'
#define main SDL_main
^
/opt/local/include/SDL/SDL_main.h:35:12: note: previous declaration is here
extern int SDL_main(int argc, char *argv[]);
^
1 warning and 1 error generated.
make: *** [thadgavin_sdl] Error 1
```
>
> Thus `main()` was changed to `int main(int argc, char **argv)`.