]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
mdoc2man: process `Dl` macros
authorArnout Engelen <arnout@bzzt.net>
Sat, 21 Jun 2025 07:47:28 +0000 (09:47 +0200)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 14 Oct 2025 07:40:39 +0000 (18:40 +1100)
`Dl` marks a single line as 'literal'. Since we don't output single
lines differently in literal vs regular mode (we only insert line
breaks for multi-line blocks in literal mode), we can just skip it.

mdoc2man.awk

index 469891965e78e4f2932ad3d86f064d95ccf709ac..c942ab86f70910f1488083d62e29647f7230e6ca 100644 (file)
@@ -95,6 +95,8 @@ function add(str) {
     } else if(match(words[w],"^Ed$")) {
       skip=1
       literal=0
+    } else if(match(words[w],"^Dl$")) {
+      skip=1
     } else if(match(words[w],"^Ns$")) {
       skip=1
       if(!nospace)