From: Thomas Weißschuh Date: Wed, 10 May 2023 10:23:20 +0000 (+0200) Subject: tools: (asciidoctor-unicodeconverter) don't fix multi manpages X-Git-Tag: v2.39~21^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d08a544eb91bcfb515e2ef58ac7a21993675c9f1;p=thirdparty%2Futil-linux.git tools: (asciidoctor-unicodeconverter) don't fix multi manpages The logic does not work for manpages describing multiple subjects, so skip it for them. Signed-off-by: Thomas Weißschuh --- 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