From a4e404a64b117a15453075ee26eb061d416e58cd Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 21 Jun 2025 09:47:28 +0200 Subject: [PATCH] mdoc2man: process `Dl` macros `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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mdoc2man.awk b/mdoc2man.awk index 469891965..c942ab86f 100644 --- a/mdoc2man.awk +++ b/mdoc2man.awk @@ -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)