diff options
author | Norbert Preining <norbert@preining.info> | 2021-10-18 03:01:28 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-10-18 03:01:28 +0000 |
commit | ad3ad18aa939862832c90a74bcf41e8a5570ff65 (patch) | |
tree | 377bed46b478634d32730a255c1a93050ee17e87 /support/arara/scripts/rules | |
parent | 54592d609e44d5cff9e5d940befbcb3330d92b10 (diff) |
CTAN sync 202110180301
Diffstat (limited to 'support/arara/scripts/rules')
-rw-r--r-- | support/arara/scripts/rules/arara-rule-indent.yaml | 21 |
1 files changed, 18 insertions, 3 deletions
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: > @{ |