aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_card.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate_card.py b/scripts/generate_card.py
index adee5693..8e8f0aa6 100755
--- a/scripts/generate_card.py
+++ b/scripts/generate_card.py
@@ -114,6 +114,7 @@ def get_latex_field(card: MutableMapping,
# Transform a list of values into a single string.
# normal fields are joined using '\\ '
if not has_latex:
+ assert len(normal_value) > 1
return '\\\\ '.join(normal_value), False
# latex_* values are just concatenated.
@@ -121,6 +122,7 @@ def get_latex_field(card: MutableMapping,
# NOTE: it is allowed for a latex_ field to be sparse.
# Missing entries in a latex_ field list are populated from the corrsponding
# entry of the normal field
+ assert len(latex_value) > 1
for i in range(0, len(latex_value)):
if latex_value[i] is None:
latex_value[i] = f'{fmt_prefix}{normal_value[i]}// '