diff options
author | EuAndreh <eu@euandre.org> | 2025-04-17 15:41:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-17 15:41:16 -0300 |
commit | 464f630152471c0b3369660c0c9ea0e1b5b58308 (patch) | |
tree | 34b6e35c328c4eb2906d27d4064e2ea9c737cf15 | |
parent | src/adoc: Add fix_footnotes() to the pipeline (diff) | |
download | adoc-464f630152471c0b3369660c0c9ea0e1b5b58308.tar.gz adoc-464f630152471c0b3369660c0c9ea0e1b5b58308.tar.xz |
src/adoc(fix_footnotes()): Add <p> to <li> content
-rwxr-xr-x | src/adoc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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>$/ { |