Skip to content

Commit

Permalink
fix uninitialized value warning
Browse files Browse the repository at this point in the history
  • Loading branch information
julianuu committed Nov 8, 2021
1 parent f7ee1d5 commit 1c9dc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latexdiff
Original file line number Diff line number Diff line change
Expand Up @@ -2576,9 +2576,9 @@ sub take_comments_and_newline_from_frac() {
# \frac1 -> \frac{1}
# \frac a -> \frac{a}
# \frac \lambda -> \frac{\lambda}
s/\\frac(?:${space}+\{($pat_n)\}|${space}*(\d)|${space}+(\w)|${space}*(\\[a-zA-Z]+))/\\frac\{$1$2$3$4\}/g;
s/\\frac(?|${space}+\{($pat_n)\}|${space}*(\d)|${space}+(\w)|${space}*(\\[a-zA-Z]+))/\\frac\{$1\}/g;
# same as above for the second argument of frac
s/\\frac(\{$pat_n\})(?:${space}*\{($pat_n)\}|${space}*(\d)|${space}+(\w)|${space}*(\\[a-zA-Z]+))/\\frac$1\{$2$3$4$5\}/g;
s/\\frac(\{$pat_n\})(?|${space}*\{($pat_n)\}|${space}*(\d)|${space}+(\w)|${space}*(\\[a-zA-Z]+))/\\frac$1\{$2\}/g;
}

# preprocess($string, ..)
Expand Down

0 comments on commit 1c9dc55

Please sign in to comment.