Commit 0ab3f231 authored by User expired's avatar User expired Committed by User expired
Browse files

bib-format: Fix to ampersand escaping for latex

Also escape ampersands without preceding blank but never in urls.
parent 217a5c99
......@@ -207,7 +207,7 @@ do
"$tmpfile"
# Escape ampersands.
sed -i '/^ [Aa]bstract/!{/&/s/ &/ \\\&/g}' "$tmpfile"
sed -i '/^ [Aa]bstract\|^ [Uu]rl/!{/&/s/\([^\\]\)&/\1\\\&/g}' "$tmpfile"
# Remove footnote signs (author and editor list).
sed -i '/^ \(Author\|Editor\) = {/s/[*‡]//g' "$tmpfile"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment