diff options
author | Thomas "Cakeisalie5" Touhey <thomas@touhey.fr> | 2018-07-29 19:51:42 +0200 |
---|---|---|
committer | Thomas "Cakeisalie5" Touhey <thomas@touhey.fr> | 2018-07-29 19:51:42 +0200 |
commit | 5acbc428cd937c3d4eee6240b5a8a1de121df3a6 (patch) | |
tree | 3408e47c901228efb355edc2de48c9539b76104d /textoutpc/builtin/_Rot.py | |
parent | bb36d42a54b0a81751b046d58d96e65b8f18579b (diff) |
Corrected a few things about the tags.
Diffstat (limited to 'textoutpc/builtin/_Rot.py')
-rwxr-xr-x | textoutpc/builtin/_Rot.py | 7 |
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]) |