summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-17 15:41:16 -0300
committerEuAndreh <eu@euandre.org>2025-04-17 15:41:16 -0300
commit464f630152471c0b3369660c0c9ea0e1b5b58308 (patch)
tree34b6e35c328c4eb2906d27d4064e2ea9c737cf15
parentsrc/adoc: Add fix_footnotes() to the pipeline (diff)
downloadadoc-464f630152471c0b3369660c0c9ea0e1b5b58308.tar.gz
adoc-464f630152471c0b3369660c0c9ea0e1b5b58308.tar.xz
src/adoc(fix_footnotes()): Add <p> to <li> content
-rwxr-xr-xsrc/adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adoc b/src/adoc
index f99e7d5..58d08db 100755
--- a/src/adoc
+++ b/src/adoc
@@ -82,9 +82,9 @@ fix_footnotes() {
id = IDS[FNIDX++]
content = substr($0, RLENGTH + length(". ") + 1)
- li = sprintf("<li role=\"doc-endnote\" id=\"fn:%s\">", id)
+ li = sprintf("<li role=\"doc-endnote\" id=\"fn:%s\"><p>", id)
a = sprintf("<a role=\"doc-backlink\" href=\"#ref:%s\">", id)
- print li content " " a "↩</a></li>"
+ print li content " " a "↩</a></p></li>"
next
}
has_ol == 1 && /^<\/div>$/ {