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
Double-quote strings in scalar values only when they look like a number
Commit da8e77d started to quote many
YAML scalars just in case they could be mistaken for numbers. This
caused quoting on places where not necessary. E.g.:
license:
module:
- "MIT"
That was disturbing and broke DNF tests which compare serialized YAML
documents as strings.
This patch introduces an inteligency into the quoting: Only strings
which could be mistaken for a number (1.0 versus "1.0") are quoted
now. This approach should restore brevity and provide more stability
into the YAML serialization.
Note that this patch only corrects overquoting which was introduced in
da8e77d commit. Autoquoting of other
fields, including thorough tests, will be implemented in subsequent
commits.
#587
0 commit comments