projects
/
libsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e611e
)
Put newline after closing italic / bold when writing binary STL.
author
Carl Hetherington
<cth@carlh.net>
Mon, 31 Oct 2016 15:08:46 +0000
(15:08 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 31 Oct 2016 15:08:46 +0000
(15:08 +0000)
src/stl_binary_writer.cc
patch
|
blob
|
history
diff --git
a/src/stl_binary_writer.cc
b/src/stl_binary_writer.cc
index 05a01dc8e5d4dabb2632f0c3b8e2d68bfb9c2e08..9f2057aa9386b808014c34901f1c3bd4f7f32927 100644
(file)
--- 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);
}