mirror of
https://github.com/pocoproject/poco.git
synced 2025-06-05 22:20:51 +02:00
PocoDoc: fix handling of font-style tags if tag is immediately followed by punctuation
This commit is contained in:
parent
08fe7fd200
commit
ae00d05006
@ -1400,7 +1400,10 @@ 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 (it != end && std::ispunct(*it)) token += *it++;
|
if (token != "<[" && token != "<*" && token != "<!")
|
||||||
|
{
|
||||||
|
if (it != end && std::ispunct(*it)) token += *it++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (it != end && *it == '[')
|
else if (it != end && *it == '[')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user