summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-17 00:03:51 +0200
committerCarl Hetherington <cth@carlh.net>2023-09-03 20:43:51 +0200
commit11a47a4544f77a47b508e4cf1983aca7d5b6cd2a (patch)
tree38aa06b6fce34586df172813ceab132c5dd06ce5 /src/lib
parentdbfb852ea5b7169a80b701089bf0bc7e30c6e328 (diff)
Ignore newlines in subtitle text (#2341).
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>";