mirror of
https://github.com/apprenticeharper/DeDRM_tools
synced 2024-11-16 07:47:18 +01:00
Another Python 3 fix
This commit is contained in:
parent
91e4645315
commit
4229b8ff85
1 changed files with 4 additions and 4 deletions
|
@ -770,10 +770,10 @@ class DocParser(object):
|
||||||
first_para_continued = False
|
first_para_continued = False
|
||||||
(pclass, pdesc) = self.getParaDescription(start,end, regtype)
|
(pclass, pdesc) = self.getParaDescription(start,end, regtype)
|
||||||
if not pclass:
|
if not pclass:
|
||||||
if orig_regtype.endswith(b'.right') : pclass = 'cl-right'
|
if orig_regtype.endswith(b'.right') : pclass = b'cl-right'
|
||||||
elif orig_regtype.endswith(b'.center') : pclass = 'cl-center'
|
elif orig_regtype.endswith(b'.center') : pclass = b'cl-center'
|
||||||
elif orig_regtype.endswith(b'.left') : pclass = 'cl-left'
|
elif orig_regtype.endswith(b'.left') : pclass = b'cl-left'
|
||||||
elif orig_regtype.endswith(b'.justify') : pclass = 'cl-justify'
|
elif orig_regtype.endswith(b'.justify') : pclass = b'cl-justify'
|
||||||
if pclass and (ptype == 'full') and (len(pclass) >= 6):
|
if pclass and (ptype == 'full') and (len(pclass) >= 6):
|
||||||
tag = 'p'
|
tag = 'p'
|
||||||
if pclass[3:6] == b'h1-' : tag = 'h4'
|
if pclass[3:6] == b'h1-' : tag = 'h4'
|
||||||
|
|
Loading…
Reference in a new issue