Adjust minted options

- Remove "chapter" and "section" as this are to be passed as class
  options and are otherwise not recognized.

- Let onoff=false for all TRUEFALSE parameters, otherwise only the
  form option=true is accepted and option=false does not validate,
  generating a lot of confusion.
This commit is contained in:
Enrico Forestieri 2017-06-11 17:47:31 +02:00
parent 1009e44746
commit 3f61375bc3

View File

@ -657,12 +657,6 @@ ParValidator::ParValidator()
// is to signal that this is a floating listing. // is to signal that this is a floating listing.
all_params_[1]["float"] = all_params_[1]["float"] =
ListingsParam("false", true, SUBSETOF, "*tbph", empty_hint); ListingsParam("false", true, SUBSETOF, "*tbph", empty_hint);
all_params_[1]["chapter"] =
ListingsParam("", true, TRUEFALSE, "", _(
"Number floats by chapter"));
all_params_[1]["section"] =
ListingsParam("", true, TRUEFALSE, "", _(
"Number floats by section"));
all_params_[1]["cache"] = all_params_[1]["cache"] =
ListingsParam("", false, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["cachedir"] = all_params_[1]["cachedir"] =
@ -685,25 +679,25 @@ ParValidator::ParValidator()
all_params_[1]["outputdir"] = all_params_[1]["outputdir"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["autogobble"] = all_params_[1]["autogobble"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["baselinestretch"] = all_params_[1]["baselinestretch"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakafter"] = all_params_[1]["breakafter"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakaftergroup"] = all_params_[1]["breakaftergroup"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["breakaftersymbolpre"] = all_params_[1]["breakaftersymbolpre"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakaftersymbolpost"] = all_params_[1]["breakaftersymbolpost"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakanywhere"] = all_params_[1]["breakanywhere"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["breakanywheresymbolpre"] = all_params_[1]["breakanywheresymbolpre"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakanywheresymbolpost"] = all_params_[1]["breakanywheresymbolpost"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakautoindent"] = all_params_[1]["breakautoindent"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["breakbefore"] = all_params_[1]["breakbefore"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakbeforegroup"] = all_params_[1]["breakbeforegroup"] =
@ -713,13 +707,13 @@ ParValidator::ParValidator()
all_params_[1]["breakbeforesymbolpost"] = all_params_[1]["breakbeforesymbolpost"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breakbytoken"] = all_params_[1]["breakbytoken"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["breakbytokenanywhere"] = all_params_[1]["breakbytokenanywhere"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["breakindent"] = all_params_[1]["breakindent"] =
ListingsParam("", false, LENGTH, "", empty_hint); ListingsParam("", false, LENGTH, "", empty_hint);
all_params_[1]["breaklines"] = all_params_[1]["breaklines"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["breaksymbol"] = all_params_[1]["breaksymbol"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["breaksymbolleft"] = all_params_[1]["breaksymbolleft"] =
@ -743,7 +737,7 @@ ParValidator::ParValidator()
all_params_[1]["codetagify"] = all_params_[1]["codetagify"] =
ListingsParam("", false, ALL, "", empty_hint); ListingsParam("", false, ALL, "", empty_hint);
all_params_[1]["curlyquotes"] = all_params_[1]["curlyquotes"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["encoding"] = all_params_[1]["encoding"] =
ListingsParam("", false, ALL, "", _( ListingsParam("", false, ALL, "", _(
"Sets encoding expected by Pygments")); "Sets encoding expected by Pygments"));
@ -777,7 +771,7 @@ ParValidator::ParValidator()
all_params_[1]["framesep"] = all_params_[1]["framesep"] =
ListingsParam("", false, LENGTH, "", empty_hint); ListingsParam("", false, LENGTH, "", empty_hint);
all_params_[1]["funcnamehighlighting"] = all_params_[1]["funcnamehighlighting"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["gobble"] = all_params_[1]["gobble"] =
ListingsParam("", false, INTEGER, "", empty_hint); ListingsParam("", false, INTEGER, "", empty_hint);
all_params_[1]["highlightcolor"] = all_params_[1]["highlightcolor"] =
@ -800,56 +794,56 @@ ParValidator::ParValidator()
all_params_[1]["lastline"] = all_params_[1]["lastline"] =
ListingsParam("", false, INTEGER, "", empty_hint); ListingsParam("", false, INTEGER, "", empty_hint);
all_params_[1]["linenos"] = all_params_[1]["linenos"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["numberfirstline"] = all_params_[1]["numberfirstline"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["numbers"] = all_params_[1]["numbers"] =
ListingsParam("", false, ONEOF, ListingsParam("", false, ONEOF,
"left\nright\nboth\nnone", empty_hint); "left\nright\nboth\nnone", empty_hint);
all_params_[1]["mathescape"] = all_params_[1]["mathescape"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["numberblanklines"] = all_params_[1]["numberblanklines"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["numbersep"] = all_params_[1]["numbersep"] =
ListingsParam("", false, LENGTH, "", empty_hint); ListingsParam("", false, LENGTH, "", empty_hint);
all_params_[1]["obeytabs"] = all_params_[1]["obeytabs"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["outencoding"] = all_params_[1]["outencoding"] =
ListingsParam("", false, ALL, "", _( ListingsParam("", false, ALL, "", _(
"File encoding used by Pygments for highlighting")); "File encoding used by Pygments for highlighting"));
all_params_[1]["python3"] = all_params_[1]["python3"] =
ListingsParam("", true, TRUEFALSE, "", _( ListingsParam("", false, TRUEFALSE, "", _(
"Apply Python 3 highlighting")); "Apply Python 3 highlighting"));
all_params_[1]["resetsmargins"] = all_params_[1]["resetmargins"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["rulecolor"] = all_params_[1]["rulecolor"] =
ListingsParam("", false, ALL, "", color_hint_mint); ListingsParam("", false, ALL, "", color_hint_mint);
all_params_[1]["samepage"] = all_params_[1]["samepage"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["showspaces"] = all_params_[1]["showspaces"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["showtabs"] = all_params_[1]["showtabs"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["space"] = all_params_[1]["space"] =
ListingsParam("", false, ALL, "", _( ListingsParam("", false, ALL, "", _(
"A macro. Default: \\textvisiblespace")); "A macro. Default: \\textvisiblespace"));
all_params_[1]["spacecolor"] = all_params_[1]["spacecolor"] =
ListingsParam("", false, ALL, "", color_hint_mint); ListingsParam("", false, ALL, "", color_hint_mint);
all_params_[1]["startinline"] = all_params_[1]["startinline"] =
ListingsParam("", true, TRUEFALSE, "", _("For PHP only")); ListingsParam("", false, TRUEFALSE, "", _("For PHP only"));
all_params_[1]["style"] = all_params_[1]["style"] =
ListingsParam("", false, ALL, "", _( ListingsParam("", false, ALL, "", _(
"The style used by Pygments")); "The style used by Pygments"));
all_params_[1]["stepnumber"] = all_params_[1]["stepnumber"] =
ListingsParam("", false, INTEGER, "", empty_hint); ListingsParam("", false, INTEGER, "", empty_hint);
all_params_[1]["stepnumberfromfirst"] = all_params_[1]["stepnumberfromfirst"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["stepnumberoffsetvalues"] = all_params_[1]["stepnumberoffsetvalues"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["stripall"] = all_params_[1]["stripall"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["stripnl"] = all_params_[1]["stripnl"] =
ListingsParam("", true, TRUEFALSE, "", empty_hint); ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_[1]["tab"] = all_params_[1]["tab"] =
ListingsParam("", false, ALL, "", _( ListingsParam("", false, ALL, "", _(
"A macro to redefine visible tabs")); "A macro to redefine visible tabs"));
@ -858,10 +852,10 @@ ParValidator::ParValidator()
all_params_[1]["tabsize"] = all_params_[1]["tabsize"] =
ListingsParam("", false, INTEGER, "", empty_hint); ListingsParam("", false, INTEGER, "", empty_hint);
all_params_[1]["texcl"] = all_params_[1]["texcl"] =
ListingsParam("", true, TRUEFALSE, "", _( ListingsParam("", false, TRUEFALSE, "", _(
"Enables latex code in comments")); "Enables latex code in comments"));
all_params_[1]["texcomments"] = all_params_[1]["texcomments"] =
ListingsParam("", true, TRUEFALSE, "", _( ListingsParam("", false, TRUEFALSE, "", _(
"Enables latex code in comments")); "Enables latex code in comments"));
all_params_[1]["xleftmargin"] = all_params_[1]["xleftmargin"] =
ListingsParam("", false, LENGTH, "", empty_hint); ListingsParam("", false, LENGTH, "", empty_hint);