Note that newer libsub version is required.
[dcpomatic.git] / src / lib / render_text.cc
index 8e5acc0ff89cd6bdc1e0f543e409b5a5481dc10e..870f3045d31340fb692c98cb65d8c858d6c4b38f 100644 (file)
@@ -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>";