parent
737d0a10b6
commit
37e868b3f2
|
@ -134,7 +134,7 @@ void cleanup_text(string &text)
|
||||||
{
|
{
|
||||||
replacement = "</H>";
|
replacement = "</H>";
|
||||||
}
|
}
|
||||||
else if (text.substr(pos, 5) == "<span")
|
else if (text.substr(pos, 6) == "<span ")
|
||||||
{
|
{
|
||||||
auto endpos{text.find('>')};
|
auto endpos{text.find('>')};
|
||||||
boost::match_results<const char *> match;
|
boost::match_results<const char *> match;
|
||||||
|
@ -144,6 +144,12 @@ void cleanup_text(string &text)
|
||||||
replacement = "<PAGE " + match[2] + ">";
|
replacement = "<PAGE " + match[2] + ">";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (text.substr(pos, 7) == "<style "
|
||||||
|
|| text.substr(pos, 8) == "<script ")
|
||||||
|
{
|
||||||
|
pos = text.find('>', pos) + 1;
|
||||||
|
}
|
||||||
|
|
||||||
text.replace(pos, text.find('>', pos) + 1 - pos, replacement);
|
text.replace(pos, text.find('>', pos) + 1 - pos, replacement);
|
||||||
pos += replacement.length();
|
pos += replacement.length();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue