Ticket #196 (new enhancement)
Uneccessry use of explict non-specific tags
|Reported by:||anonymous||Owned by:||xi|
I recently noticed that libyaml is putting an explicit non-specific tag on every string that has characters that need to be escaped. For example:
- "This is an 'example'."
Comes back as:
- ! 'This is an example.'
The ! sign is gratuitous, as it is completely unnecessary. For documents that humans may need to read it greatly detracts from readability, so it would be nice to see these go away.
Also, I suspect it may have more subtle issues since the ! tag can be redefined in a %TAG directive. I haven't tested it but does libyaml take that into account here? Maybe it does, but I could see that easily being overlooked since the ! isn't needed in the first place.