diff --git a/patacrep/templates.py b/patacrep/templates.py index 4b81c08d..3673f878 100644 --- a/patacrep/templates.py +++ b/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