projects
/
libsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca1ad3
)
Fix STL italic / underline (from master).
author
Carl Hetherington
<cth@carlh.net>
Tue, 13 Sep 2016 14:28:52 +0000
(15:28 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 13 Sep 2016 14:28:52 +0000
(15:28 +0100)
src/stl_binary_writer.cc
patch
|
blob
|
history
diff --git
a/src/stl_binary_writer.cc
b/src/stl_binary_writer.cc
index f1afa2cca7eab0852c108ffef6cc4ef3e69aa663..05a01dc8e5d4dabb2632f0c3b8e2d68bfb9c2e08 100644
(file)
--- a/
src/stl_binary_writer.cc
+++ b/
src/stl_binary_writer.cc
@@
-284,6
+284,16
@@
sub::write_stl_binary (
text += "\x8A";
+ /* Turn italic/underline off before the end of this subtitle */
+
+ if (underline) {
+ text += "\x83";
+ }
+
+ if (italic) {
+ text += "\x81";
+ }
+
if (text.length() > 111) {
text = text.substr (111);
}