Modify ↓
Ticket #196 (new enhancement)
Uneccessry use of explict non-specific tags
| Reported by: | anonymous | Owned by: | xi |
|---|---|---|---|
| Priority: | high | Component: | libyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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.
Attachments
Change History
comment:1 in reply to: ↑ description Changed 22 months ago by transfire@…
Note: See
TracTickets for help on using
tickets.

Replying to anonymous:
Sorry the example didn't not come out quite right. Better: