diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-31 15:08:46 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-31 15:08:46 +0000 |
| commit | 79ec1e022626d0e06e9af19d4c74c4f5ca44a564 (patch) | |
| tree | 0dac48e1c25ca5ad28a43d79445c5a19ada8fb42 /src | |
| parent | 09e611e69fe92baeb0b6c1b35bd8fe7032b77cf9 (diff) | |
Put newline after closing italic / bold when writing binary STL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/stl_binary_writer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc index 05a01dc..9f2057a 100644 --- a/src/stl_binary_writer.cc +++ b/src/stl_binary_writer.cc @@ -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); } |
