summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-05-20 20:19:20 +0000
committerKarl Berry <karl@freefriends.org>2023-05-20 20:19:20 +0000
commit966f5266f47369fceb572fa736ea9a975c86d8bd (patch)
treeaccd6c93996e158d896d2d6b733f3322231e3e13 /Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm
parent06cccdee5db849d30c6de6e7981c6015b7772342 (diff)
latexindent (20may23)
git-svn-id: svn://tug.org/texlive/trunk@67174 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm')
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm
index 16a01bf2092..59188a7234a 100644
--- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm
+++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Document.pm
@@ -187,12 +187,12 @@ sub operate_on_file {
$self->remove_leading_space;
$self->process_body_of_text;
${$self}{body} =~ s/\r\n/\n/sg if $mainSettings{dos2unixlinebreaks};
- $self->remove_trailing_whitespace( when => "after" );
$self->condense_blank_lines
if ( $is_m_switch_active and ${ $mainSettings{modifyLineBreaks} }{condenseMultipleBlankLinesInto} );
$self->unprotect_blank_lines
if ( $is_m_switch_active and ${ $mainSettings{modifyLineBreaks} }{preserveBlankLines} );
$self->un_dodge_double_backslash;
+ $self->remove_trailing_whitespace( when => "after" );
$self->make_replacements( when => "after" ) if $is_rv_switch_active;
$self->put_verbatim_back_in( match => "everything-except-commands" );
$self->put_trailing_comments_back_in;