Skip to content

Commit

Permalink
Merge pull request #18 from reenberg/fix/missing-header-option
Browse files Browse the repository at this point in the history
[pantable2csv]: Fixes error when a table doesn't have a header.
  • Loading branch information
ickc committed Oct 7, 2018
2 parents c42df5b + d7bd181 commit 6136866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pantable/pantable2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def table2csv(elem, doc):
# options: table-width from width
options['table-width'] = sum(options['width'])
# options: header: False if empty header row, else True
options['header'] = bool(panflute.stringify(elem.header))
options['header'] = bool(panflute.stringify(elem.header)) if elem.header else False
# options: markdown
options['markdown'] = True

Expand Down

0 comments on commit 6136866

Please sign in to comment.