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
+14
-14
@@ -1,7 +1,7 @@
|
||||
## To build:
|
||||
|
||||
```sh
|
||||
make
|
||||
make
|
||||
```
|
||||
|
||||
There is a 121 byte version provided by the author. See [Alternate
|
||||
@@ -13,7 +13,7 @@ code](#alternate-code) below.
|
||||
The current status of this entry is:
|
||||
|
||||
```
|
||||
STATUS: INABIAF - please **DO NOT** fix
|
||||
STATUS: INABIAF - please **DO NOT** fix
|
||||
```
|
||||
|
||||
For more detailed information see [2014 maffiodo2 bugs](../../bugs.html#2014_maffiodo2).
|
||||
@@ -22,14 +22,14 @@ For more detailed information see [2014 maffiodo2 bugs](../../bugs.html#2014_maf
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
./prog arg
|
||||
./prog arg
|
||||
```
|
||||
|
||||
|
||||
## Try:
|
||||
|
||||
```sh
|
||||
./try.sh
|
||||
./try.sh
|
||||
```
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ as fun but it's 121 bytes instead of 140.
|
||||
### Alternate build:
|
||||
|
||||
```sh
|
||||
make alt
|
||||
make alt
|
||||
```
|
||||
|
||||
|
||||
### Alternate use:
|
||||
|
||||
```sh
|
||||
cat image.rgb | ./prog.alt
|
||||
cat image.rgb | ./prog.alt
|
||||
```
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ If you have a terminal geometry than is different from the common 80x25 you can
|
||||
modify the *output width* by changing the value of the first variable:
|
||||
|
||||
```c
|
||||
d=80,
|
||||
d=80,
|
||||
```
|
||||
|
||||
### Something to try
|
||||
@@ -100,14 +100,14 @@ d=80,
|
||||
Type this:
|
||||
|
||||
```sh
|
||||
cat image.rgb | ./prog " .:;Y0"
|
||||
cat image.rgb | ./prog " .:;Y0"
|
||||
```
|
||||
|
||||
You can use your own image. Convert the image to a raw RGB image. Using
|
||||
ImageMagick it's very simple:
|
||||
|
||||
```sh
|
||||
convert -geometry 80x source.jpg image.rgb
|
||||
convert -geometry 80x source.jpg image.rgb
|
||||
```
|
||||
|
||||
This program require one parameter or it will crash. The parameter of the
|
||||
@@ -117,10 +117,10 @@ program is the *conversion ramp*. You can use different ramps or create your own
|
||||
These are some ramps you can try:
|
||||
|
||||
```sh
|
||||
./prog " :1"
|
||||
./prog " .:;Y0"
|
||||
./prog " .:-=+*#%@"
|
||||
./prog " .,:!-iots&8%#@$"
|
||||
./prog " :1"
|
||||
./prog " .:;Y0"
|
||||
./prog " .:-=+*#%@"
|
||||
./prog " .,:!-iots&8%#@$"
|
||||
```
|
||||
|
||||
### 121 byte version
|
||||
@@ -128,7 +128,7 @@ These are some ramps you can try:
|
||||
An alternative version of this program is only 121bytes long:
|
||||
|
||||
```c
|
||||
d=80,e,j;g(){j+=getchar();}main(){for(;;){j=0;g();if(j<0)break;g(g());putchar(" .:#@"[j/3*5>>8]);if(!(++e%d))puts("");}}
|
||||
d=80,e,j;g(){j+=getchar();}main(){for(;;){j=0;g();if(j<0)break;g(g());putchar(" .:#@"[j/3*5>>8]);if(!(++e%d))puts("");}}
|
||||
```
|
||||
|
||||
This alternative version has a **fixed ramp**. It's smaller but it's not so fun to use...
|
||||
|
||||
Reference in new issue
Block a user