Summary Files Commits Branches @commit @diff @stats
path: root / single.awk
diff options
context:
space:
mode:
1 files changed, 2 insertions, 1 deletions
-rw-r--r--single.awk3
diff --git a/single.awk b/single.awk
index b60535f..0d402fd 100644
--- a/single.awk
+++ b/single.awk
@@ -338,10 +338,11 @@ function surround(brace, opening, closing, blen, single_surround) {
surround("`" , "<code>" , "</code>")
}
+# Definition lists
!prev_blankline && /^: / {
sub(/^<p>/, "", prev)
sub(/^: /, "")
- prev = "<dl><dt>" prev "</dt>" ORS "<dd>" $0 "</dd></dl>"
+ prev = "<dl><dt>" ORS prev ORS "</dt><dd>" ORS $0 ORS "</dd></dl>"
blankline = 1
next
}