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