summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/render_text.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/render_text.cc b/src/lib/render_text.cc
index 8e5acc0ff..870f3045d 100644
--- a/src/lib/render_text.cc
+++ b/src/lib/render_text.cc
@@ -104,6 +104,7 @@ marked_up(vector<StringText> subtitles, int target_height, float fade_factor, st
boost::algorithm::replace_all(text, "&", "&amp;");
boost::algorithm::replace_all(text, "<", "&lt;");
boost::algorithm::replace_all(text, ">", "&gt;");
+ boost::algorithm::replace_all(text, "\n", "");
span += text;
span += "</span>";