summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/TrailingComments.pm
diff options
context:
space:
mode:
Diffstat (limited to 'support/latexindent/LatexIndent/TrailingComments.pm')
-rw-r--r--support/latexindent/LatexIndent/TrailingComments.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/latexindent/LatexIndent/TrailingComments.pm b/support/latexindent/LatexIndent/TrailingComments.pm
index 82ff154c87..8bab5bc130 100644
--- a/support/latexindent/LatexIndent/TrailingComments.pm
+++ b/support/latexindent/LatexIndent/TrailingComments.pm
@@ -54,6 +54,9 @@ sub add_comment_symbol{
sub remove_trailing_comments{
my $self = shift;
+
+ $commentCounter = 0;
+
$logger->trace("*Storing trailing comments")if $is_t_switch_active;
my $notPreceededBy = qr/${${$mainSettings{fineTuning}}{trailingComments}}{notPreceededBy}/;