You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[writer] Shorthandable tags are not shorthanded #258
I'm using this library to parse a configuration format where I added some custom types. These custom types are constructed and represented through some types I'm writing. All of the types are collected in a custom schema. (By the way, schemas work great and makes the library very extensible :)
Below I copy the input I'm parsing:
d: !!lp/fnref log
And this is the output I get after loading the YAML text and dumping the data structure
d: !<tag:yaml.org,2002:lp/fnref> log
Is there anyway I can tell js-yaml to dump tag names in the short representation I used in the input?
Activity
dervus commentedon Feb 18, 2016
This is not implemented. By the way, we should had an improvement-ticket for this since 2.0 release. Forgotten stuff. Let it be such a ticket then.
[-][writer] Tag name representation differs from input[/-][+][writer] Shorthandable tags are not shorthanded[/+]Shorthand tags with !! whenever possible
rlidwka commentedon Dec 28, 2020
Fixed in a583097 (currently in
devbranch).