fix(builder): Erase full tag

Ref #180
This commit is contained in:
Michael Carlberg 2016-11-22 21:33:27 +01:00
parent 7c60998459
commit 0983167510

View File

@ -84,11 +84,11 @@ void builder::node(string str, bool add_space) {
} else if ((n = s.find("%{Uu-}")) == 0) { } else if ((n = s.find("%{Uu-}")) == 0) {
underline_color_close(true); underline_color_close(true);
s.erase(0, 5); s.erase(0, 6);
} else if ((n = s.find("%{Uo-}")) == 0) { } else if ((n = s.find("%{Uo-}")) == 0) {
overline_color_close(true); overline_color_close(true);
s.erase(0, 5); s.erase(0, 6);
} else if ((n = s.find("%{Uu#")) == 0 && (m = s.find("}")) != string::npos) { } else if ((n = s.find("%{Uu#")) == 0 && (m = s.find("}")) != string::npos) {
underline_color(s.substr(n + 4, m - 4)); underline_color(s.substr(n + 4, m - 4));