Skip to content

Commit

Permalink
Add citations to output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdswinbank committed Aug 29, 2020
1 parent a3f16dc commit e39873a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/generate_milestones.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from io import StringIO

from milestones import (escape_latex, write_output,
from milestones import (escape_latex, format_latex, write_output,
get_latest_pmcs_path, get_local_data_path,
load_milestones)

Expand Down Expand Up @@ -28,15 +28,15 @@ def generate_commentary(milestones):
output.write("\\subsubsection{Execution Procedure}\n\n")
if ms.test_spec:
output.write(f"This text will be executed following the procedure "
f"defined in {escape_latex(ms.test_spec)}.\n\n")
f"defined in {format_latex(ms.test_spec)}.\n\n")
else:
output.write("The execution procedure for this test is "
"currently unspecified.\n\n")
output.write("\\subsubsection{Description}\n\n")
output.write(f"{escape_latex(ms.description)}\n\n")
output.write(f"{format_latex(ms.description)}\n\n")
if ms.comment:
output.write("\\subsubsection{Comments}\n\n")
output.write(f"{escape_latex(ms.comment)}\n\n")
output.write(f"{format_latex(ms.comment)}\n\n")
return output.getvalue()


Expand Down

0 comments on commit e39873a

Please sign in to comment.