Skip to content

Commit

Permalink
roffit: convert backslashes to \
Browse files Browse the repository at this point in the history
... just to make them less likely to cause problems down the road.
  • Loading branch information
bagder committed Nov 15, 2021
1 parent 1fe6331 commit 8d06507
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roffit
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ sub parsefile {
# replace backslash [something] with just [something]
$txt =~ s/\\(.)/$1/g;

# convert remaining backslashes to \
$txt =~ s/\\/&bsol\;/g;
if(($txt =~ /^[ \t\r\n]*$/) && (!$pre)) {
# no contents, marks end of a paragraph
showp(@p);
Expand Down

0 comments on commit 8d06507

Please sign in to comment.