PocoDoc: fix handling of font-style tags if tag is immediately followed by punctuation

This commit is contained in:
Günter Obiltschnig 2022-06-14 10:22:05 +02:00
parent 08fe7fd200
commit ae00d05006

View File

@ -1400,8 +1400,11 @@ void DocWriter::nextToken(std::string::const_iterator& it, const std::string::co
{ {
token += *it++; token += *it++;
if (it != end && std::ispunct(*it)) token += *it++; if (it != end && std::ispunct(*it)) token += *it++;
if (token != "<[" && token != "<*" && token != "<!")
{
if (it != end && std::ispunct(*it)) token += *it++; if (it != end && std::ispunct(*it)) token += *it++;
} }
}
else if (it != end && *it == '[') else if (it != end && *it == '[')
{ {
token += *it++; token += *it++;