Skip to content

Commit

Permalink
Documentation for Package: Handle unsaved files
Browse files Browse the repository at this point in the history
Before this update the command would display an error if the current
TeX document was not already stored on disk.

Thanks to Tim Bates who reported this problem.
  • Loading branch information
sanssecours committed Sep 16, 2017
1 parent 91a75a5 commit eb1b431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Support/lib/Python/tex.py
Expand Up @@ -300,6 +300,8 @@ def find_tex_directives(texfile, ignore_root_loops=False):
>>> chdir('../..')
"""
if not texfile:
return {}
root_chain = [texfile]
directive_regex = compile(r'%\s*!T[E|e]X\s+([\w-]+)\s*=\s*(.+)')
directives = {}
Expand Down

0 comments on commit eb1b431

Please sign in to comment.