From ad3ad18aa939862832c90a74bcf41e8a5570ff65 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 18 Oct 2021 03:01:28 +0000 Subject: CTAN sync 202110180301 --- support/arara/scripts/rules/arara-rule-indent.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'support/arara/scripts/rules') diff --git a/support/arara/scripts/rules/arara-rule-indent.yaml b/support/arara/scripts/rules/arara-rule-indent.yaml index 8425d596de..accfa3b2d7 100644 --- a/support/arara/scripts/rules/arara-rule-indent.yaml +++ b/support/arara/scripts/rules/arara-rule-indent.yaml @@ -13,9 +13,9 @@ commands: - name: The latexindent.pl script command: > @{ - return getCommand('latexindent', silent, trace, screenlog, + return getCommand('latexindent', silent, trace, screenlog, lines, settings, cruft, overwrite, output, reference.getName(), - modifylinebreaks, replacement, options, logfile); + modifylinebreaks, check, replacement, options, logfile); } arguments: - identifier: silent @@ -76,6 +76,11 @@ arguments: @{ [ '-o', parameters.output ] } +- identifier: lines + flag: > + @{ + [ '--lines', parameters.lines ] + } - identifier: where flag: > @{ @@ -96,7 +101,17 @@ arguments: throwError('You provided an invalid value for replacement.'); } } - +- identifier: check + flag: > + @{ + opts = [ 'standard' : '--check', 'verbose' : '--checkv' ]; + if (opts.keySet().contains(parameters.check)) { + return opts[parameters.check]; + } + else { + throwError('You provided an invalid value for check.'); + } + } - identifier: options flag: > @{ -- cgit v1.2.3