diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/stl_binary_writer.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc index f1afa2c..05a01dc 100644 --- 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); } |
