|
2026-05-22
| ||
| 10:23 | • Closed ticket [31cdc84bd2]: ::yaml::_parsePlainScalarInBlock only parses the fir... artifact: 5ff3dde6b0 user: apnadkarni | |
|
2024-03-13
| ||
| 17:21 | • New ticket [31cdc84bd2]. artifact: 95cd5e9a70 user: anonymous | |
::yaml::_parsePlainScalarInBlock only parses the first 5 lines of a plain scalar
Closed / Invalid31cdc84bd27af080305973c5f8c5696b2c7c70a3Created 3 years agoUpdated 195 days ago
Descriptionplain2024-03-13 17:21:17
This commit appears to have inadvertently added a debug break that causes ::yaml::_parsePlainScalarInBlock to stop after the fifth line of a plain multi-line scalar:
https://core.tcl-lang.org/tcllib/info/fc59390525aeda7e
The bad code:
proc ::yaml::_parsePlainScalarInBlock {base {loop 0}} {
if {$loop == 5} { return }
The code appears to still be present in the current git:
https://core.tcl-lang.org/tcllib/blame?filename=modules/yaml/yaml.tcl&checkin=5be206c63f7681c9
I think the tests may have strings short enough not to expose the bug.
Example testcase:
% set str {my_thing:
one
two
three
four
five
six}
% puts [::yaml::yaml2dict $str]
my_thing {one two three four five}
apnadkarnimarkdown2026-05-22 10:23:58
This is a tcllib issue, not Tcl. Moved to tcllib repository a23348be0b
Log in (anonymous is fine) to add a comment.