X-Git-Url: https://git.sthu.org/?p=shutils.git;a=blobdiff_plain;f=bib2html.py;fp=bib2html.py;h=f501b85d67fd9740200882696d43dfd9454c4f76;hp=5db0d075d32d4ba6b75cbe1ddc7ba66a51cc822c;hb=0cc5e4edd3f4fb329c0686b26907f8544e3db371;hpb=71fa4820b859573765bef228365036afeb6ea10e 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) + ""