From d08a544eb91bcfb515e2ef58ac7a21993675c9f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 10 May 2023 12:23:20 +0200 Subject: [PATCH] tools: (asciidoctor-unicodeconverter) don't fix multi manpages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The logic does not work for manpages describing multiple subjects, so skip it for them. Signed-off-by: Thomas Weißschuh --- tools/asciidoctor-unicodeconverter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/asciidoctor-unicodeconverter.rb b/tools/asciidoctor-unicodeconverter.rb index 2c6fd43ffe..759307acce 100644 --- a/tools/asciidoctor-unicodeconverter.rb +++ b/tools/asciidoctor-unicodeconverter.rb @@ -17,7 +17,7 @@ module UnicodeConverter if state == IN_NAME_SECTION line.sub! " \u2013 ", " - " line.sub! " \u2014 ", " - " - if line.start_with? command and not line.start_with? "#{command} - " + if line.start_with? command and not line.include? ',' and not line.start_with? "#{command} - " logger.warn "adding dash to name section of #{document.attributes['docfile']}" line.sub! command, "#{command} - " end -- 2.47.3