SUSE-Enceladus / keg

Kiwi Entwicklungs-Gerät (tool to produce kiwi image descriptions)
GNU General Public License v3.0
8 stars 6 forks source link

Source tracking fixes #102

Closed jgleissner closed 2 years ago

jgleissner commented 2 years ago

Fix source end line info. The end line was only correct for key: value input, and off by one in case the value bit was on separate line(s). Presumably the YAML parser sets the end marker when it determines that the value node is done, and in case of multi line keys it obviously needs to parse the subsequent line for that, unlike in single line keys, so that makes some sense.

Include source info for namespace keys. Previously not included, which meant that some changes (e.g. namespace renames without changing its content) may be missed.

Fix deletion of empty keys. Not actually source tracking related.