Closed atusy closed 2 months ago
In write_bib, apply gsub('(?<!\\\\)&', '\\\\&', x, perl = TRUE) to escape unespcaped ampersands.
write_bib
gsub('(?<!\\\\)&', '\\\\&', x, perl = TRUE)
Note that released implementation partially applies the escape. Instead, I apply the escape as later as possible so that the escape happens widely.
In
write_bib
, applygsub('(?<!\\\\)&', '\\\\&', x, perl = TRUE)
to escape unespcaped ampersands.Note that released implementation partially applies the escape. Instead, I apply the escape as later as possible so that the escape happens widely.