aboutsummaryrefslogtreecommitdiff
path: root/textoutpc/builtin/_Align.py
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-08-25 17:38:24 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-08-25 17:38:24 +0200
commitea98e48a15dd4f3145d8eb55ddc061c1008d4212 (patch)
tree38c3ec8b62789f3dc9d3a2cd522c52c802dd954e /textoutpc/builtin/_Align.py
parent4774189495cd43ab2d12c310d2728d951d41468e (diff)
Corn flake8
Diffstat (limited to 'textoutpc/builtin/_Align.py')
-rwxr-xr-xtextoutpc/builtin/_Align.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/textoutpc/builtin/_Align.py b/textoutpc/builtin/_Align.py
index b23df83..800c3ca 100755
--- a/textoutpc/builtin/_Align.py
+++ b/textoutpc/builtin/_Align.py
@@ -8,10 +8,11 @@ from .. import BlockTag as _BlockTag
__all__ = ["AlignTag"]
+
class AlignTag(_BlockTag):
""" Main tag for aligning paragraphs.
Example uses:
-
+
[align=center]This text is centered horizontally.[/align]
[justify]This text is justified.[/justify]
"""
@@ -31,7 +32,7 @@ class AlignTag(_BlockTag):
if not name:
align = None
- elif name == 'align' and value != None:
+ elif name == 'align' and value is not None:
align = _align[value]
else:
align = _align[name[1:-1]]