summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/DoubleBackSlash.pm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-04-15 03:00:41 +0000
committerNorbert Preining <norbert@preining.info>2022-04-15 03:00:41 +0000
commitd82d72343a5dfcbc4ba14569fba7f9e34debdf71 (patch)
treee352abde532b9c5839b13499878d2b726f8d7e02 /support/latexindent/LatexIndent/DoubleBackSlash.pm
parentef28ae824b7f6bc8e2b9c08443b53fd2ef37a781 (diff)
CTAN sync 202204150300
Diffstat (limited to 'support/latexindent/LatexIndent/DoubleBackSlash.pm')
-rw-r--r--support/latexindent/LatexIndent/DoubleBackSlash.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/support/latexindent/LatexIndent/DoubleBackSlash.pm b/support/latexindent/LatexIndent/DoubleBackSlash.pm
index 8b8be3e25e..1c483b6865 100644
--- a/support/latexindent/LatexIndent/DoubleBackSlash.pm
+++ b/support/latexindent/LatexIndent/DoubleBackSlash.pm
@@ -1,4 +1,5 @@
package LatexIndent::DoubleBackSlash;
+
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -25,9 +26,9 @@ our @EXPORT_OK = qw/dodge_double_backslash un_dodge_double_backslash/;
# cycle list={blue,mark=none\\},
# see test-cases/texexchange/29293-christian-feuersanger.tex
#
-# This is problematic, as the argument regexp won't count the right } because it has a
+# This is problematic, as the argument regexp won't count the right } because it has a
# backslash immediately infront of it!
-sub dodge_double_backslash{
+sub dodge_double_backslash {
my $self = shift;
${$self}{body} =~ s/(?:\\\\(\{|\}|\]))/$tokens{doubleBackSlash}$1/sg;
@@ -35,7 +36,7 @@ sub dodge_double_backslash{
}
# this routine replaces the token with the \\\\
-sub un_dodge_double_backslash{
+sub un_dodge_double_backslash {
my $self = shift;
${$self}{body} =~ s/$tokens{doubleBackSlash}/\\\\/sg;