Skip to content

Commit

Permalink
Very minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ftilmann committed Oct 7, 2018
1 parent b96ddcc commit bc61234
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions latexdiff
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# - improved pattern matching: now allows nested angular brackets, and is no longer confused by escaped curly braces
# - improved pattern matching in COARSE mode: occasionally, the closing bracket or some other elements would be matched in an 'unnatural' way due to another sequence being more minimal in the computational sense, sometimes even causing errors due to tokens moving in or out of the scope of math environments. This is now discouraged by adding internal \DIFANCHOR commands (which are removed again in post-processing) (fixes issues reported via email by li_ruomeng .
# - verbatim and lstlisting environments are marked-up with line-by-line in a similar style to non-verbatim text (requires the listing package to be installed)
# (see new configuration variable VERBATIMLINEENV)
# (see new configuration variable VERBATIMLINEENV) (several issues and pull requests by jprotze)
# - --flatten: now supports \verbatiminput and \lstlistinput
# - --flatten: if file is not found, do not fail, simply warn and leave command unexpanded (inspired by issue #112). Don't warn if file name contains #[0-9] as it is then most likely an argument within a command definition rather than an actual file (applies to \input, \subfile, \include commands)
# - added to textcmds: \intertext
Expand Down Expand Up @@ -2599,9 +2599,7 @@ sub reverselinecomment {
# I therefore have to introduce an artificial '-' character at the end of empty added or deleted lines
$verbatimtext =~ s/($DELCOMMENT\s*)$/$1-/mg;
$verbatimtext = "\\DIFmodbegin\n\\begin{${environment}}${verbatimtext}\\end{${environment}}\n\\DIFmodend"
}
else
{
} else {
$verbatimtext = "\\begin{${environment}}${verbatimtext}\\end{${environment}}"
}
###print STDERR "NEW VERBATIMTEXT: |$verbatimtext|\n";
Expand Down

0 comments on commit bc61234

Please sign in to comment.