Skip to content

Commit 157f51f

Browse files
authored
Merge pull request #4701 from MidnightCommander/4691_fix_man2hlp
Ticket #4691: fix `\e` handling in `man2hlp` converter
2 parents 2e2d9a3 + 297e8a0 commit 157f51f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/man2hlp/man2hlp.in

+6
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ sub print_string($)
305305
$backslash_flag = 0;
306306
next;
307307
}
308+
if ($_ eq 'e' && $backslash_flag)
309+
{
310+
print $f_out '\\';
311+
$backslash_flag = 0;
312+
next;
313+
}
308314
if ($_ eq '\\' && !$backslash_flag)
309315
{
310316
$backslash_flag = 1;

0 commit comments

Comments
 (0)