Skip to content

Commit

Permalink
don't skip explicit str tags when emitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Herringway committed Sep 18, 2023
1 parent a914d23 commit 05cdebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dyaml/emitter.d
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
{
if(style_ == ScalarStyle.invalid){style_ = chooseScalarStyle();}
if((!canonical_ || (tag is null)) &&
((tag == "tag:yaml.org,2002:str") || (style_ == ScalarStyle.plain ? event_.implicit : !event_.implicit && (tag is null))))
(((tag == "tag:yaml.org,2002:str") && event_.implicit) || (style_ == ScalarStyle.plain ? event_.implicit : !event_.implicit && (tag is null))))
{
preparedTag_ = null;
return;
Expand Down

0 comments on commit 05cdebf

Please sign in to comment.