diff options
| Commit | a132e1ba8480edd7f4efc80b02b5f91064b572a5 (patch) | |
|---|---|---|
| Author | 2024-12-31 10:29:11 +0200 | |
| Committer | 2024-12-31 10:29:11 +0200 | |
| Files | 8a5bf33eab5c15924f68df44beb8da5034e6ce5c /single.awk | |
| csg-a132e1ba8480edd7f4efc80b02b5f91064b572a5.tar csg-a132e1ba8480edd7f4efc80b02b5f91064b572a5.tar.gz csg-a132e1ba8480edd7f4efc80b02b5f91064b572a5.zip | ||
| Parent | 77226b4f56a25cb9b791f93b0d9cea66f3b1ff46 (diff) | |
fix(single): Flatten identation of list items
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | single.awk | 4 |
@@ -244,7 +244,9 @@ function abs(x) { return ((x < 0) ? -x : x) } else { println("</li><li>") } - $0 = substr($0, RSTART + RLENGTH) +} +!blankline && lengthStack("list-level") > 0 { + $0 = substr($0, abs(topStack("list-level")) + 1) } # Paragraphs |
