parent
737d0a10b6
commit
37e868b3f2
@ -134,7 +134,7 @@ void cleanup_text(string &text)
|
||||
{
|
||||
replacement = "</H>";
|
||||
}
|
||||
else if (text.substr(pos, 5) == "<span")
|
||||
else if (text.substr(pos, 6) == "<span ")
|
||||
{
|
||||
auto endpos{text.find('>')};
|
||||
boost::match_results<const char *> match;
|
||||
@ -144,6 +144,12 @@ void cleanup_text(string &text)
|
||||
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);
|
||||
pos += replacement.length();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user