From: Stefan Huber Date: Sat, 29 Jul 2023 17:51:50 +0000 (+0200) Subject: bib2html.py: Add more LaTeX syntax replacement X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=0cc5e4edd3f4fb329c0686b26907f8544e3db371;p=shutils.git bib2html.py: Add more LaTeX syntax replacement --- diff --git a/bib2html.py b/bib2html.py index 5db0d07..f501b85 100755 --- a/bib2html.py +++ b/bib2html.py @@ -37,7 +37,7 @@ import os, sys, getopt, re def format_latex(text): # Get rid of matching dollar signs text = re.sub(r'\$([^\$]*)\$', r'\1', text) - return text.replace('\mathcal', '').replace('{', '').replace('}', '').replace('\\', '') + return text.replace('\mathcal', '').replace('{', '').replace('}', '').replace('\\', '').replace('~', ' ').replace('--', '–') def format_field_span(type, value): return "" + format_latex(value) + ""