archive
/
md-pdf
Archived
1
Fork 0

Null check TOCs

This commit is contained in:
Jake Howard 2017-06-01 15:42:32 +01:00
parent 253ecb88f1
commit 82fc33a1c4
1 changed files with 1 additions and 1 deletions

View File

@ -49,6 +49,6 @@ def export_pdf(content, config):
os.path.join(os.path.abspath(config['output_dir']), 'output.pdf'),
options=PDF_OPTIONS,
cover=FILE_NAME_FORMAT.format('cover'),
toc=TOC_OPTIONS if config['toc'] else {},
toc=TOC_OPTIONS if config.get('toc') else {},
cover_first=True
)