|
|
@ -296,9 +296,9 @@ class Subtitle(Subtitle_):
|
|
|
|
def prepare_text(text, style):
|
|
|
|
def prepare_text(text, style):
|
|
|
|
body = []
|
|
|
|
body = []
|
|
|
|
for fragment, sty in parse_tags(text, style, sub.styles):
|
|
|
|
for fragment, sty in parse_tags(text, style, sub.styles):
|
|
|
|
fragment = fragment.replace(ur"\h", u" ")
|
|
|
|
fragment = fragment.replace(r"\h", u" ")
|
|
|
|
fragment = fragment.replace(ur"\n", u"\n")
|
|
|
|
fragment = fragment.replace(r"\n", u"\n")
|
|
|
|
fragment = fragment.replace(ur"\N", u"\n")
|
|
|
|
fragment = fragment.replace(r"\N", u"\n")
|
|
|
|
if sty.drawing:
|
|
|
|
if sty.drawing:
|
|
|
|
raise pysubs2.ContentNotUsable
|
|
|
|
raise pysubs2.ContentNotUsable
|
|
|
|
|
|
|
|
|
|
|
|