Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 29651: fix module names with underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Aug 29, 2020
1 parent 4e167e9 commit b0310af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage_setup/docbuild/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def __init__(self, path):
# By default, this is DOT_SAGE/docbuild/MODULE_NAME, but can
# also be specified at the command line.
module_name = os.path.splitext(os.path.basename(path))[0]
latex_name = module_name.replace('_', r'\_')
latex_name = module_name.replace('_', r'\\_')

if self._options.output_dir:
base_dir = os.path.join(self._options.output_dir, module_name)
Expand Down

0 comments on commit b0310af

Please sign in to comment.