From 098316751001d56423ecee7ce843e3c0a6870988 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 22 Nov 2016 21:33:27 +0100 Subject: [PATCH] fix(builder): Erase full tag Ref #180 --- src/components/builder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/builder.cpp b/src/components/builder.cpp index af3ea064..a367c54c 100644 --- a/src/components/builder.cpp +++ b/src/components/builder.cpp @@ -84,11 +84,11 @@ void builder::node(string str, bool add_space) { } else if ((n = s.find("%{Uu-}")) == 0) { underline_color_close(true); - s.erase(0, 5); + s.erase(0, 6); } else if ((n = s.find("%{Uo-}")) == 0) { overline_color_close(true); - s.erase(0, 5); + s.erase(0, 6); } else if ((n = s.find("%{Uu#")) == 0 && (m = s.find("}")) != string::npos) { underline_color(s.substr(n + 4, m - 4));