Fixed index out of range error in fancy exporter (#1522)

This commit is contained in:
Kevin 2022-07-30 12:16:56 -07:00 committed by GitHub
parent 7b5106dd08
commit 08c366d950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ class FancyExporter(TextExporter):
subsequent_indent=cls.border_g + " ",
)
title_lines = w.wrap(entry.title)
title_lines = w.wrap(entry.title) or [""]
card.append(
title_lines[0].ljust(initial_linewrap + 1)
+ cls.border_d