diff options
Diffstat (limited to 'support/latexindent/LatexIndent/OptionalArgument.pm')
-rw-r--r-- | support/latexindent/LatexIndent/OptionalArgument.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/support/latexindent/LatexIndent/OptionalArgument.pm b/support/latexindent/LatexIndent/OptionalArgument.pm index 90dba063b9..877a5e97a7 100644 --- a/support/latexindent/LatexIndent/OptionalArgument.pm +++ b/support/latexindent/LatexIndent/OptionalArgument.pm @@ -17,13 +17,13 @@ package LatexIndent::OptionalArgument; # For all communication, please visit: https://github.com/cmhughes/latexindent.pl use strict; use warnings; -use LatexIndent::Tokens qw/%tokens/; +use LatexIndent::Tokens qw/%tokens/; use LatexIndent::TrailingComments qw/$trailingCommentRegExp/; -use LatexIndent::Switches qw/$is_t_switch_active $is_tt_switch_active $is_m_switch_active /; -use LatexIndent::LogFile qw/$logger/; -use LatexIndent::IfElseFi qw/$ifElseFiBasicRegExp/; -use LatexIndent::Special qw/$specialBeginBasicRegExp/; -use Exporter qw/import/; +use LatexIndent::Switches qw/$is_t_switch_active $is_tt_switch_active $is_m_switch_active /; +use LatexIndent::LogFile qw/$logger/; +use LatexIndent::IfElseFi qw/$ifElseFiBasicRegExp/; +use LatexIndent::Special qw/$specialBeginBasicRegExp/; +use Exporter qw/import/; our @ISA = "LatexIndent::Document"; # class inheritance, Programming Perl, pg 321 our @EXPORT_OK = qw/find_optional_arguments/; our $optionalArgumentCounter; @@ -52,7 +52,7 @@ sub find_optional_arguments { # log file output $logger->trace("*Optional argument found, body in ${$self}{name}") if $is_t_switch_active; - $logger->trace("(last argument)") if ( $9 eq '' and $is_t_switch_active ); + $logger->trace("(last argument)") if ( $9 eq '' and $is_t_switch_active ); ${$self}{body} =~ s/ $optArgRegExp(\h*)($trailingCommentRegExp)*(.*) |