diff options
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/Lines.pm')
-rw-r--r-- | Master/texmf-dist/scripts/latexindent/LatexIndent/Lines.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Lines.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Lines.pm index edfe8115647..d1ee631b084 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Lines.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Lines.pm @@ -30,6 +30,9 @@ sub lines_body_selected_lines { # strip all space from lines switch $switches{lines} =~ s/\h//sg; + # convert multiple - into single + $switches{lines} =~ s/-+/-/sg; + $logger->info("*-n,--lines switch is active, operating on lines $switches{lines}"); $logger->info("number of lines in file: ".($#lines+1)); $logger->info("*interpretting $switches{lines}"); |