aboutsummaryrefslogtreecommitdiff
path: root/textoutpc/builtin/_Rot.py
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-07-29 19:51:42 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-07-29 19:51:42 +0200
commit5acbc428cd937c3d4eee6240b5a8a1de121df3a6 (patch)
tree3408e47c901228efb355edc2de48c9539b76104d /textoutpc/builtin/_Rot.py
parentbb36d42a54b0a81751b046d58d96e65b8f18579b (diff)
Corrected a few things about the tags.
Diffstat (limited to 'textoutpc/builtin/_Rot.py')
-rwxr-xr-xtextoutpc/builtin/_Rot.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/textoutpc/builtin/_Rot.py b/textoutpc/builtin/_Rot.py
index 226b798..f3df58d 100755
--- a/textoutpc/builtin/_Rot.py
+++ b/textoutpc/builtin/_Rot.py
@@ -23,8 +23,11 @@ class RotTag(_InlineTag):
def prepare(self, name, value):
if name == "[rot]":
- rot = int(value)
- assert 1 <= rot <= 25
+ if not value:
+ value = 13
+ else:
+ rot = int(value)
+ assert 1 <= rot <= 25
else:
rot = int(name[4:-1])