Correctly skip a bottom caption

The getArg() method stops at the first closing brace, whether it
matches the opening one or not, so properly parse the caption and
then throw it away.
This commit is contained in:
Enrico Forestieri 2017-06-17 14:01:42 +02:00
parent cde5d60fcf
commit 000b7f3f46

View File

@ -3903,7 +3903,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
} else {
// We already got the caption at the bottom,
// so simply skip it.
p.getArg('{', '}');
parse_text_snippet(p, FLAG_ITEM, false, context);
}
}