Menu

#1189 string macro parsing is buggy

open
bibtex (1)
5
2010-03-30
2010-03-30
jo kerozen
No

the bibtex parser return a -stringcommand if string "string" is found in an entry, not only in case of @string{ key = "str str str"}
a regexp seems faulty :
in bibtex.tcl, line 366 :

} elseif {[regexp -nocase {\s*string[^\{]*\{(.*)\}[^\}]*} \
$block -> rest]} {

must be replaced to :

} elseif {[regexp -nocase {\s*string\{(.*)\}} \
$block -> rest]} {

Discussion