Put newline after closing italic / bold when writing binary STL.
authorCarl Hetherington <cth@carlh.net>
Mon, 31 Oct 2016 15:08:46 +0000 (15:08 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 31 Oct 2016 15:08:46 +0000 (15:08 +0000)
src/stl_binary_writer.cc

index 05a01dc8e5d4dabb2632f0c3b8e2d68bfb9c2e08..9f2057aa9386b808014c34901f1c3bd4f7f32927 100644 (file)
@@ -282,8 +282,6 @@ sub::write_stl_binary (
                                text += utf16_to_iso6937 (utf_to_utf<wchar_t> (k->text));
                        }
 
-                       text += "\x8A";
-
                        /* Turn italic/underline off before the end of this subtitle */
 
                        if (underline) {
@@ -294,6 +292,8 @@ sub::write_stl_binary (
                                text += "\x81";
                        }
 
+                       text += "\x8A";
+
                        if (text.length() > 111) {
                                text = text.substr (111);
                        }