From 56e142479bba4cb15b6349ee6c13c5c1a7a8779f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 15 Nov 2021 14:44:31 +0100 Subject: [PATCH] roffit: convert backslash-e to \ Bug: https://github.com/curl/curl/pull/9418 Reported-by: Samuel Henrique Closes #26 --- roffit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roffit b/roffit index f0778a2..e61ddb2 100755 --- a/roffit +++ b/roffit @@ -556,6 +556,9 @@ sub parsefile { $txt =~ s/\\\(cq/&apos\;/g; $txt =~ s/\\\(dq/"\;/g; + # \e is the "escape character", defaults to backslash + $txt =~ s/\\e/\/g; + $txt = handle_italic_bold $txt; # replace backslash [something] with just [something]