Add debug log for replacements.
This commit is contained in:
parent
9067b387ef
commit
262aab6671
|
@ -168,6 +168,8 @@ void cleanup_text(string &text)
|
||||||
pos = text.find('>', pos) + 1;
|
pos = text.find('>', pos) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUGLOG << "Replacing '" << text.substr(pos, endpos - pos)
|
||||||
|
<< "' with '" << replacement << "'.";
|
||||||
text.replace(pos, endpos - pos, replacement);
|
text.replace(pos, endpos - pos, replacement);
|
||||||
pos += replacement.length();
|
pos += replacement.length();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user