diff options
author | Karl Berry <karl@freefriends.org> | 2023-11-19 21:31:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-11-19 21:31:07 +0000 |
commit | e6d80c059c6f406941d26d63e1de56e06e81d316 (patch) | |
tree | c679da0bfdd10ad13103df312691c3eb5b6cfb5f /Master/texmf-dist/scripts | |
parent | ec4c05eb534d8038353f24a68cc69b1802c6742d (diff) |
latexindent (19nov23)
git-svn-id: svn://tug.org/texlive/trunk@68909 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
4 files changed, 9 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/FileContents.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/FileContents.pm index 730858094bd..c96eabe548b 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/FileContents.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/FileContents.pm @@ -136,7 +136,10 @@ sub find_file_contents_environments_and_preamble { my $needToStorePreamble = 0; # try and find the preamble - if ( ${$self}{body} =~ m/$preambleRegExp/sx and ${ $mainSettings{lookForPreamble} }{ ${$self}{fileExtension} } ) { + my $lookForPreamble = ${ $mainSettings{lookForPreamble} }{ ${$self}{fileExtension} }; + $lookForPreamble = 1 if ( ${$self}{fileName} eq "-" and ${ $mainSettings{lookForPreamble} }{STDIN} ); + + if ( ${$self}{body} =~ m/$preambleRegExp/sx and $lookForPreamble ) { $logger->trace( "\\begin{document} found in body (after searching for filecontents)-- assuming that a preamble exists") diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm index ba3d1433ddc..24ff152679a 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm @@ -20,6 +20,6 @@ use warnings; use Exporter qw/import/; our @EXPORT_OK = qw/$versionNumber $versionDate/; -our $versionNumber = '3.23.3'; -our $versionDate = '2023-10-13'; +our $versionNumber = '3.23.4'; +our $versionDate = '2023-11-19'; 1 diff --git a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml index 67a2c4fbf4f..56d4be4c3da 100755 --- a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml +++ b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml @@ -1,5 +1,5 @@ # -# latexindent.pl, version 3.23.3, 2023-10-13 +# latexindent.pl, version 3.23.4, 2023-11-19 # # defaultSettings.yaml, the default settings for latexindent.pl # @@ -137,6 +137,7 @@ lookForPreamble: .sty: 0 .cls: 0 .bib: 0 + STDIN: 1 # some preambles can contain \begin and \end statements # that are not in their 'standard environment block', for example, diff --git a/Master/texmf-dist/scripts/latexindent/latexindent.pl b/Master/texmf-dist/scripts/latexindent/latexindent.pl index 1e9d4860754..42bc173040a 100755 --- a/Master/texmf-dist/scripts/latexindent/latexindent.pl +++ b/Master/texmf-dist/scripts/latexindent/latexindent.pl @@ -1,6 +1,6 @@ #!/usr/bin/env perl # -# latexindent.pl, version 3.23.3, 2023-10-13 +# latexindent.pl, version 3.23.4, 2023-11-19 # # 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 |