Remove redundant if-checks
This commit is contained in:
@@ -236,7 +236,6 @@ class ToDocX(Tokenizer):
|
|||||||
self._pars.append(par)
|
self._pars.append(par)
|
||||||
|
|
||||||
# Styles
|
# Styles
|
||||||
if tStyle is not None:
|
|
||||||
if tStyle & BlockFmt.LEFT:
|
if tStyle & BlockFmt.LEFT:
|
||||||
par.setAlignment("left")
|
par.setAlignment("left")
|
||||||
elif tStyle & BlockFmt.RIGHT:
|
elif tStyle & BlockFmt.RIGHT:
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class ToHtml(Tokenizer):
|
|||||||
|
|
||||||
# Styles
|
# Styles
|
||||||
aStyle = []
|
aStyle = []
|
||||||
if tStyle is not None and self._cssStyles:
|
if self._cssStyles:
|
||||||
if tStyle & BlockFmt.LEFT:
|
if tStyle & BlockFmt.LEFT:
|
||||||
aStyle.append("text-align: left;")
|
aStyle.append("text-align: left;")
|
||||||
elif tStyle & BlockFmt.RIGHT:
|
elif tStyle & BlockFmt.RIGHT:
|
||||||
|
|||||||
@@ -408,7 +408,6 @@ class ToOdt(Tokenizer):
|
|||||||
|
|
||||||
# Styles
|
# Styles
|
||||||
oStyle = ODTParagraphStyle("New")
|
oStyle = ODTParagraphStyle("New")
|
||||||
if tStyle is not None:
|
|
||||||
if tStyle & BlockFmt.LEFT:
|
if tStyle & BlockFmt.LEFT:
|
||||||
oStyle.setTextAlign("left")
|
oStyle.setTextAlign("left")
|
||||||
elif tStyle & BlockFmt.RIGHT:
|
elif tStyle & BlockFmt.RIGHT:
|
||||||
|
|||||||
Reference in New Issue
Block a user