From bf2308668773e7ee69d34d1a55fc976d8b505f72 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Sat, 19 Nov 2016 08:10:24 +0100 Subject: [PATCH] fix(builder): Always close raw syntax tags The lazy closing doesn't work well with raw syntax tags so ignore it when closing tags. --- src/components/builder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/builder.cpp b/src/components/builder.cpp index 67c1fbeb..b4166715 100644 --- a/src/components/builder.cpp +++ b/src/components/builder.cpp @@ -48,7 +48,7 @@ void builder::node(string str, bool add_space) { break; } else if ((n = s.find("%{F-}")) == 0) { - color_close(!m_lazy); + color_close(true); s.erase(0, 5); } else if ((n = s.find("%{F#")) == 0 && (m = s.find("}")) != string::npos) { @@ -59,7 +59,7 @@ void builder::node(string str, bool add_space) { s.erase(n, m + 1); } else if ((n = s.find("%{B-}")) == 0) { - background_close(!m_lazy); + background_close(true); s.erase(0, 5); } else if ((n = s.find("%{B#")) == 0 && (m = s.find("}")) != string::npos) { @@ -67,7 +67,7 @@ void builder::node(string str, bool add_space) { s.erase(n, m + 1); } else if ((n = s.find("%{T-}")) == 0) { - font_close(!m_lazy); + font_close(true); s.erase(0, 5); } else if ((n = s.find("%{T")) == 0 && (m = s.find("}")) != string::npos) { @@ -75,7 +75,7 @@ void builder::node(string str, bool add_space) { s.erase(n, m + 1); } else if ((n = s.find("%{U-}")) == 0) { - line_color_close(!m_lazy); + line_color_close(true); s.erase(0, 5); } else if ((n = s.find("%{U#")) == 0 && (m = s.find("}")) != string::npos) {