Commit d731af84 authored by User expired's avatar User expired
Browse files

bib-keyinsert: Fix escaping of \r for \r{A}, \r{a}

parent 36d598dc
Pipeline #27936 passed with stage
in 1 minute and 32 seconds
......@@ -105,6 +105,7 @@ function updatekeys() { # updatekeys bibfile skipj bibfile [letter]
function escape(str) {
escaped = str
gsub("\\\\", "\\\\", escaped) # replace \ by \\
gsub("\\\\r", "\\\\\\\\r", escaped) # replace \r by \\r
gsub("\"", "\\\"", escaped) # replace " by \"
gsub("`", "\\`", escaped) # replace ` by \`
return escaped
......
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