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

Commit

Permalink
some details
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Oct 29, 2021
1 parent d9cd177 commit ec995b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage_docbuild/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def pdf(self):
rst = re.sub(r'`([^`\n]*)`__.*\n\n__ (.*)',
r'<a href="\2">\1</a>.', rst)
rst = re.sub(r'`([^<\n]*)\s+<(.*)>`_',
r'<a href="\2">\1</a>', rst)
r'<a href="\2">\1</a>', rst)
rst = re.sub(r':doc:`([^<]*?)\s+<(.*)/index>`',
r'<a href="\2/\2.pdf">\1 <img src="_static/pdf.png"/></a>', rst)
# Body: add paragraph <p> markup.
Expand All @@ -730,7 +730,7 @@ def pdf(self):
# now write the file.
with open(os.path.join(output_dir, 'index.html'), 'w') as new_index:
new_index.write(html[:html_end_preamble])
new_index.write('<h1> Sage Reference Manual (PDF version)'+ '</h1>')
new_index.write('<h1>Sage Reference Manual (PDF version)</h1>')
new_index.write(rst_body)
new_index.write('<ul>')
new_index.write(rst_toc)
Expand Down

0 comments on commit ec995b7

Please sign in to comment.