From a132e1ba8480edd7f4efc80b02b5f91064b572a5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 31 Dec 2024 10:29:11 +0200 Subject: fix(single): Flatten identation of list items --- single.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'single.awk') diff --git a/single.awk b/single.awk index 2ac29cf..00f9e2e 100644 --- a/single.awk +++ b/single.awk @@ -244,7 +244,9 @@ function abs(x) { return ((x < 0) ? -x : x) } else { println("
  • ") } - $0 = substr($0, RSTART + RLENGTH) +} +!blankline && lengthStack("list-level") > 0 { + $0 = substr($0, abs(topStack("list-level")) + 1) } # Paragraphs -- cgit v1.3.1-23-gd82d