summaryrefslogtreecommitdiffstats
path: root/tools
diff options
Diffstat (limited to 'tools')
-rwxr-xr-xtools/md-wrapper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/md-wrapper.py b/tools/md-wrapper.py
index dd13409..ca86f1f 100755
--- a/tools/md-wrapper.py
+++ b/tools/md-wrapper.py
@@ -231,7 +231,7 @@ if revisions_list:
231 231
232 # Generate HTML for the original proposal. 232 # Generate HTML for the original proposal.
233 preamble = "_This is the original proposal._\n" 233 preamble = "_This is the original proposal._\n"
234 preamble += " [ [Return to the latest version][latest] ]\n" 234 preamble += " [ [Return to the latest version][latest] ]\n\n"
235 source_format = orig_metadata.get("format", "markdown") 235 source_format = orig_metadata.get("format", "markdown")
236 if source_format == "markdown": 236 if source_format == "markdown":
237 annotated_text = preamble + source_text + "\n" + revisions_refs 237 annotated_text = preamble + source_text + "\n" + revisions_refs
@@ -263,7 +263,7 @@ if revisions_list:
263 rev_date = "latest" 263 rev_date = "latest"
264 preamble = f"_This is the {rev_date} version of the proposal._\n" 264 preamble = f"_This is the {rev_date} version of the proposal._\n"
265 preamble += f" [ [Compare with previous version][diff{i+1}] ]\n" 265 preamble += f" [ [Compare with previous version][diff{i+1}] ]\n"
266 preamble += " [ [Return to the latest version][latest] ]\n" 266 preamble += " [ [Return to the latest version][latest] ]\n\n"
267 source_format = rev_metadata.get("format", "markdown") 267 source_format = rev_metadata.get("format", "markdown")
268 if source_format == "markdown": 268 if source_format == "markdown":
269 annotated_text = preamble + source_text + "\n" + revisions_refs 269 annotated_text = preamble + source_text + "\n" + revisions_refs
@@ -279,7 +279,7 @@ if revisions_list:
279 preamble = f"_Comparing {prev_rev_date} with {rev_date}._\n" 279 preamble = f"_Comparing {prev_rev_date} with {rev_date}._\n"
280 if i + 1 < nrevisions: 280 if i + 1 < nrevisions:
281 preamble += f" [ [View this version][rev{i+1}] ]\n" 281 preamble += f" [ [View this version][rev{i+1}] ]\n"
282 preamble += " [ [Return to the latest version][latest] ]\n" 282 preamble += " [ [Return to the latest version][latest] ]\n\n"
283 formatted_text = markdown.markdown(preamble + revisions_refs) 283 formatted_text = markdown.markdown(preamble + revisions_refs)
284 formatted_text += "\n\n" 284 formatted_text += "\n\n"
285 formatted_text += compare_source_texts(prev_source_text, source_text) 285 formatted_text += compare_source_texts(prev_source_text, source_text)