#include "support/convert.h"
#include "support/gettext.h"
-#include "support/lassert.h"
#include "support/lstrings.h"
#include "support/textutils.h"
INTEGER, // accept an integer
LENGTH, // accept a latex length
ONEOF, // accept one of a few values
- SUBSETOF, // accept a string composed of given characters
+ SUBSETOF // accept a string composed of given characters
};
ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_["breaklines"] =
ListingsParam("", false, TRUEFALSE, "", empty_hint);
+ all_params_["breakatwhitespace"] =
+ ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_["prebreak"] =
ListingsParam("", false, ALL, "", empty_hint);
all_params_["postbreak"] =
// check onoff flag
// onoff parameter with value false
if (!par_validator)
- par_validator = new ParValidator();
+ par_validator = new ParValidator;
if (par_validator->onoff(key) && (value == "false" || value == "{false}"))
params_[keyname] = string();
// if the parameter is surrounded with {}, good
else {
bool has_special_char = false;
for (size_t i = 0; i < value.size(); ++i)
- if (!isAlphaASCII(value[i]) && !isDigit(value[i])) {
+ if (!isAlnumASCII(value[i])) {
has_special_char = true;
break;
}
{
docstring msg;
if (!par_validator)
- par_validator = new ParValidator();
+ par_validator = new ParValidator;
for (map<string, string>::const_iterator it = params_.begin();
it != params_.end(); ++it) {
msg = par_validator->validate(it->first, it->second);