Tcl Library Source Code

View Ticket
Login
Ticket UUID: 2979481
Title: string macro parsing is buggy
Type: Bug Version: None
Submitter: jokerozen Created on: 2010-03-30 16:22:47
Subsystem: bibtex Assigned To: tallniel
Priority: 5 Medium Severity:
Status: Open Last Modified: 2010-03-30 16:22:47
Resolution: None Closed By:
    Closed on:
Description:
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]} {