| 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: | Closed | Last Modified: | 2026-11-21 08:42:16 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-11-21 08:42:16 | |||
| 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]} {
| |||
| User Comments: |
serhiy.storchaka added on 2026-11-21 08:42:16:
Duplicate of [071dbedcc8]: the string-macro regexp was not anchored, so "string" inside a field value made the entry a string definition. Fixed in [cd1a3ac12d] (bibtex 0.6, tcllib 1.17). Verified with a title containing "string": the parent check-in passes it to -stringcommand, trunk returns the record. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki