fktn-k / fkYAML

A C++ header-only YAML library
MIT License
69 stars 7 forks source link

#200 Allow a space in unquoted strings #202

Closed fktn-k closed 11 months ago

fktn-k commented 11 months ago

As described here in the YAML specification, plain (unquoted) string scalars can contain a space character within the character sequence if a space character is surrounded by non-space characters, for instance:

test: This should be allowed but fkYAML throws an exception

fkYAML, however, did not support the exceptional case before this PR.
So, this PR has fixed the deserialization procedure and supported the above case when the precondition is met with the YAML specification.

coveralls commented 11 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling d85d6e2fc5c8866d5585390220c30f83008167f1 on feature/200_allow_space_in_unquoted_strings into 7df5b59cb438d0ebd514b3905d25201aada50742 on develop.