Skip to content

Commit

Permalink
Fix one more instance of using \1 instead of $1 on RHS of substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
mgage committed May 3, 2015
1 parent 72d7a2c commit b2133f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/PGbasicmacros.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ sub general_math_ev3 {
my $mode = shift || "inline";

$in = FEQ($in); # Format EQuations
$in =~ s/((^|[^\\])(\\\\)*)%/\1\\%/g; # avoid % becoming TeX comments (unless already escaped)
$in =~ s/((^|[^\\])(\\\\)*)%/$1\\%/g; # avoid % becoming TeX comments (unless already escaped)

## remove leading and trailing spaces so that HTML mode will
## not include unwanted spaces as per Davide Cervone.
Expand Down

0 comments on commit b2133f2

Please sign in to comment.