From: Andre Noll Date: Mon, 12 Sep 2022 22:01:41 +0000 (+0200) Subject: subcommand: Properly escape example lines in maindoc. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=1365cd34daa4f3fa07d422d95a296767201839c1;p=gsu.git subcommand: Properly escape example lines in maindoc. These lines may well contain control characters such as the single quote. --- diff --git a/subcommand b/subcommand index e544ab0..415a4f0 100644 --- a/subcommand +++ b/subcommand @@ -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