diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-06-17 00:03:51 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-09-03 20:43:51 +0200 |
| commit | 11a47a4544f77a47b508e4cf1983aca7d5b6cd2a (patch) | |
| tree | 38aa06b6fce34586df172813ceab132c5dd06ce5 /src/lib | |
| parent | dbfb852ea5b7169a80b701089bf0bc7e30c6e328 (diff) | |
Ignore newlines in subtitle text (#2341).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/render_text.cc | 1 |
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, "&", "&"); boost::algorithm::replace_all(text, "<", "<"); boost::algorithm::replace_all(text, ">", ">"); + boost::algorithm::replace_all(text, "\n", ""); span += text; span += "</span>"; |
