summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/OptionalArgument.pm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-09-10 03:01:10 +0000
committerNorbert Preining <norbert@preining.info>2023-09-10 03:01:10 +0000
commit5aeceaafdf41d8bd02ef1521380f21cbb163bd69 (patch)
tree6fc5a25e0ff30a802239a964357bb419c42f526a /support/latexindent/LatexIndent/OptionalArgument.pm
parent802cff464fb0c30783078dd27c9615c8b3500af3 (diff)
CTAN sync 202309100301
Diffstat (limited to 'support/latexindent/LatexIndent/OptionalArgument.pm')
-rw-r--r--support/latexindent/LatexIndent/OptionalArgument.pm14
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)*(.*)