]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: (asciidoctor-unicodeconverter) fix state machine comparision
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 5 May 2023 21:14:44 +0000 (23:14 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 6 May 2023 04:44:26 +0000 (06:44 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tools/asciidoctor-unicodeconverter.rb

index 344eeb8a97c8d3b621830c27f45ea83858979595..acb1c8b805185bac3669b1ff2afe284699d7f88c 100644 (file)
@@ -11,7 +11,7 @@ module UnicodeConverter
       lines = reader.read_lines
       state = BEFORE_NAME_SECTION
       lines.map! do |line|
-        if state = IN_NAME_SECTION
+        if state == IN_NAME_SECTION
           line.sub! " \u2013 ", " - "
           line.sub! " \u2014 ", " - "
         end