Ticket #196 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Uneccessry use of explict non-specific tags

Reported by: anonymous Owned by: xi
Priority: high Component: libyaml
Severity: normal Keywords:


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.


Change History

comment:1 in reply to: ↑ description Changed 3 years ago by transfire@…

Replying to anonymous:

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

  - ! 'This is an ''example''.'

Add a comment

Modify Ticket

Change Properties
<Author field>
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.