From 0cc5e4edd3f4fb329c0686b26907f8544e3db371 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 29 Jul 2023 19:51:50 +0200 Subject: [PATCH] bib2html.py: Add more LaTeX syntax replacement --- bib2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + "" -- 2.39.5