else if (t.cs() == "color") {
string const space =
- (p.hasOpt() ? p.getArg('[', ']') : string());
+ (p.hasOpt() ? p.getOpt() : string());
string argument = p.getArg('{', '}');
// check the case that a standard color is used
if (space.empty() && is_known(argument, known_basic_colors)) {
else {
h_preamble << t.asInput();
if (!space.empty())
- h_preamble << '[' << space << ']';
+ h_preamble << space;
h_preamble << '{' << argument << '}';
// the color might already be set because \definecolor
// is parsed before this