summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-17 09:04:06 -0300
committerEuAndreh <eu@euandre.org>2025-04-17 09:04:06 -0300
commit79199865c1ad6daea08b6378083d120dfaa3ed03 (patch)
tree3d31b5526cd7682c88b59942e460abe4a4973d43
parentsrc/adoc: New "add_linenums()" step (diff)
downloadadoc-79199865c1ad6daea08b6378083d120dfaa3ed03.tar.gz
adoc-79199865c1ad6daea08b6378083d120dfaa3ed03.tar.xz
src/adoc(add_linenums()): Do away with <pre>...</pre> table wrapper
-rwxr-xr-xsrc/adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adoc b/src/adoc
index 9792eec..8270a44 100755
--- a/src/adoc
+++ b/src/adoc
@@ -63,7 +63,7 @@ add_linenums() {
}
lines > 0 && /<\/code><\/pre>$/ {
BLOCK_N++
- printf "%s>%s>", line1[0], line1[1]
+ printf "%s>", line1[1]
printf "<table><tbody><tr><td><pre class=\"lineno\">"
for (i = 1; i < lines + 2; i++) {
if (i > 1) {
@@ -92,7 +92,7 @@ add_linenums() {
PAT = "</code></pre>"
printf "%s", substr($0, 1, length($0) - length(PAT))
- printf "</pre></td></tr></tbody></table></code></pre>\n"
+ printf "</pre></td></tr></tbody></table></code>\n"
lines = 0
next
}