Browse Source

Bugfix for corner case

pull/126/head
Oliverpool 9 years ago
parent
commit
ec121c2cf0
  1. 2
      patacrep/templates.py

2
patacrep/templates.py

@ -153,7 +153,7 @@ class TexBookRenderer(Renderer):
variable = default["default"]
elif "en" in default:
variable = default["en"]
elif len(default > 0):
elif len(default):
variable = default.popitem()[1]
else:
variable = None

Loading…
Cancel
Save