]> git.tue.mpg.de Git - gsu.git/commitdiff
subcommand: Properly escape example lines in maindoc.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 12 Sep 2022 22:01:41 +0000 (00:01 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 16 Oct 2022 14:11:58 +0000 (16:11 +0200)
These lines may well contain control characters such as the single
quote.

subcommand

index e544ab0252cc0b96eecefc7f489ed0d9892cb468..415a4f08d9b4ea6bcb957cb868771dac1dcbab03 100644 (file)
@@ -375,7 +375,7 @@ _gsu_roffify_maindoc()
                fi
                if [[ "${line:0:1}" == "$TAB" ]]; then # example
                        _gsu_change_roffify_state 'state' 'example'
-                       printf '%s\n' "$line"
+                       _gsu_print_protected_roff_line "$line"
                        line="$next_line"
                        continue
                fi