From 1365cd34daa4f3fa07d422d95a296767201839c1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 13 Sep 2022 00:01:41 +0200 Subject: [PATCH] subcommand: Properly escape example lines in maindoc. These lines may well contain control characters such as the single quote. --- subcommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2