tobijk / caius

A functional testing framework in object-oriented Tcl
MIT License
26 stars 5 forks source link

Markdown: _references isn't cleared #14

Closed wduquette closed 9 years ago

wduquette commented 9 years ago

Line 52 of Markdown::convert calls "array set" to initialize the _references variable; but "array set" does a merge rather than an assignment. You need to call "array unset ::Markdown::_references" just prior to eliminate old references:

        array unset ::Markdown::_references
        array set ::Markdown::_references [collect_references markdown]
tobijk commented 9 years ago

Great catch! Thanks a lot. Fixed in d8a0b10a.