summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-06 20:56:44 +0000
committerKarl Berry <karl@freefriends.org>2018-10-06 20:56:44 +0000
commit8468d42d6a37b14922df1733d45ac698ede5ff90 (patch)
treede4329973a3fe5dbb521611fc5b3fe6e2d098280
parent4dfae6add147f6fa48356ae581bc960e1b1acd56 (diff)
latexindent (6oct18)
git-svn-id: svn://tug.org/texlive/trunk@48845 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/latexindent/latexindent.pl2
-rwxr-xr-xMaster/bin/win32/latexindent.exebin11461685 -> 11461718 bytes
-rw-r--r--Master/texmf-dist/doc/support/latexindent/README2
-rw-r--r--Master/texmf-dist/doc/support/latexindent/latexindent.pdfbin740178 -> 739952 bytes
-rw-r--r--Master/texmf-dist/doc/support/latexindent/title.tex2
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm26
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm4
-rwxr-xr-xMaster/texmf-dist/scripts/latexindent/defaultSettings.yaml2
-rwxr-xr-xMaster/texmf-dist/scripts/latexindent/latexindent.pl2
9 files changed, 21 insertions, 19 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/latexindent/latexindent.pl b/Build/source/texk/texlive/linked_scripts/latexindent/latexindent.pl
index 60148de7ab3..6ff6ea348a6 100755
--- a/Build/source/texk/texlive/linked_scripts/latexindent/latexindent.pl
+++ b/Build/source/texk/texlive/linked_scripts/latexindent/latexindent.pl
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# latexindent.pl, version 3.5.1, 2018-09-15
+# latexindent.pl, version 3.5.2, 2018-10-06
#
# 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
diff --git a/Master/bin/win32/latexindent.exe b/Master/bin/win32/latexindent.exe
index 20818652b55..0fc48f0b20b 100755
--- a/Master/bin/win32/latexindent.exe
+++ b/Master/bin/win32/latexindent.exe
Binary files differ
diff --git a/Master/texmf-dist/doc/support/latexindent/README b/Master/texmf-dist/doc/support/latexindent/README
index ca5d51c1672..68818736b74 100644
--- a/Master/texmf-dist/doc/support/latexindent/README
+++ b/Master/texmf-dist/doc/support/latexindent/README
@@ -1,5 +1,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- latexindent.pl, version 3.5.1, 2018-09-15
+ latexindent.pl, version 3.5.2, 2018-10-06
PERL script to indent code within environments, and align delimited
environments in .tex files.
diff --git a/Master/texmf-dist/doc/support/latexindent/latexindent.pdf b/Master/texmf-dist/doc/support/latexindent/latexindent.pdf
index 4e7d556041b..5debcbf08bd 100644
--- a/Master/texmf-dist/doc/support/latexindent/latexindent.pdf
+++ b/Master/texmf-dist/doc/support/latexindent/latexindent.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/support/latexindent/title.tex b/Master/texmf-dist/doc/support/latexindent/title.tex
index c5bc77b483b..15ff645a534 100644
--- a/Master/texmf-dist/doc/support/latexindent/title.tex
+++ b/Master/texmf-dist/doc/support/latexindent/title.tex
@@ -8,7 +8,7 @@
sharp corners,
enhanced,
overlay={\node[anchor=north east,outer sep=2pt] at ([xshift=3cm,yshift=4mm]frame.north east) {\includegraphics[width=3cm]{logo}}; }]
- \centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.5.1
+ \centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.5.2
\end{tcolorbox}
}
\author{Chris Hughes \thanks{and contributors!
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm
index 836e7ccd88d..f283eb0661c 100644
--- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm
+++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm
@@ -36,24 +36,25 @@ sub find_noindent_block{
if($yesno){
$logger->trace("looking for $noIndentBlock:$yesno environments") if $is_t_switch_active;
+ (my $noIndentBlockSpec = $noIndentBlock) =~ s/\*/\\*/sg;
my $noIndentRegExp = qr/
(
(?!<\\)
%
- \h* # possible horizontal spaces
+ \h* # possible horizontal spaces
\\begin\{
- $noIndentBlock # environment name captured into $2
- \} # %* \begin{noindentblock} statement
+ $noIndentBlockSpec # environment name captured into $2
+ \} # % \begin{noindentblock} statement
)
(
.*?
- ) # non-greedy match (body)
+ ) # non-greedy match (body)
(
(?!<\\)
- % # %
- \h* # possible horizontal spaces
- \\end\{$noIndentBlock\} # \end{noindentblock}
- ) # %* \end{<something>} statement
+ % # %
+ \h* # possible horizontal spaces
+ \\end\{$noIndentBlockSpec\} # \end{noindentblock}
+ ) # % \end{<something>} statement
/sx;
while( ${$self}{body} =~ m/$noIndentRegExp/sx){
@@ -99,17 +100,18 @@ sub find_verbatim_environments{
if($yesno){
$logger->trace("looking for $verbEnv:$yesno environments") if $is_t_switch_active;
+ (my $verbEnvSpec = $verbEnv) =~ s/\*/\\*/sg;
my $verbatimRegExp = qr/
(
\\begin\{
- $verbEnv # environment name captured into $1
- \} # \begin{<something>} statement
+ $verbEnvSpec # environment name captured into $1
+ \} # \begin{<something>} statement
)
(
.*?
- ) # any character, but not \\begin
+ ) # any character, but not \\begin
(
- \\end\{$verbEnv\}# \end{<something>} statement
+ \\end\{$verbEnvSpec\} # \end{<something>} statement
)
/sx;
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm
index 41ca222bb3f..14e84d15c6d 100644
--- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm
+++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm
@@ -19,6 +19,6 @@ use warnings;
use Exporter qw/import/;
our @EXPORT_OK = qw/$versionNumber $versionDate/;
-our $versionNumber = '3.5.1';
-our $versionDate = '2018-09-15';
+our $versionNumber = '3.5.2';
+our $versionDate = '2018-10-06';
1
diff --git a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
index 704ae17418f..69436cd7d8a 100755
--- a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
+++ b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
@@ -1,4 +1,4 @@
-# defaultSettings.yaml for latexindent.pl, version 3.5.1, 2018-09-15
+# defaultSettings.yaml for latexindent.pl, version 3.5.2, 2018-10-06
# a script that aims to
# beautify .tex, .sty, .cls files
#
diff --git a/Master/texmf-dist/scripts/latexindent/latexindent.pl b/Master/texmf-dist/scripts/latexindent/latexindent.pl
index 60148de7ab3..6ff6ea348a6 100755
--- a/Master/texmf-dist/scripts/latexindent/latexindent.pl
+++ b/Master/texmf-dist/scripts/latexindent/latexindent.pl
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# latexindent.pl, version 3.5.1, 2018-09-15
+# latexindent.pl, version 3.5.2, 2018-10-06
#
# 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