summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/Lines.pm
diff options
context:
space:
mode:
Diffstat (limited to 'support/latexindent/LatexIndent/Lines.pm')
-rw-r--r--support/latexindent/LatexIndent/Lines.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/latexindent/LatexIndent/Lines.pm b/support/latexindent/LatexIndent/Lines.pm
index edfe811564..d1ee631b08 100644
--- a/support/latexindent/LatexIndent/Lines.pm
+++ b/support/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}");