summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-11-06 21:53:13 +0000
committerKarl Berry <karl@freefriends.org>2020-11-06 21:53:13 +0000
commitdfba327ead142f0b6bc2d4cc326dc5accd491b0a (patch)
treebf11614cdb9196d5ee2ee8188932fc6b1348338d /Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm
parentc94a02c2dfcdf9763957eefe2f80c61b25e4c96d (diff)
latexindent (6nov20)
git-svn-id: svn://tug.org/texlive/trunk@56869 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm')
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm
index 96450fdaaf2..385a3fcb47b 100644
--- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm
+++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Arguments.pm
@@ -118,6 +118,15 @@ sub find_opt_mand_arguments{
$arguments->find_round_brackets;
}
+ # we need to store the parent begin in each of the arguments, for example, see
+ # test-cases/texexchange/112343-morbusg.tex
+ # which has an alignment delimiter in the first line
+ if (${$self}{lookForAlignDelims}){
+ foreach (@{${$arguments}{children}}){
+ ${$_}{parentBegin} = ${$self}{begin};
+ }
+ }
+
# examine *first* child
# situation: parent BodyStartsOnOwnLine >= 1, but first child has BeginStartsOnOwnLine == 0 || BeginStartsOnOwnLine == undef
# problem: the *body* of parent actually starts after the arguments