From 05cdebf4db82f2c018e2f321a5fbb78fdebf28d5 Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Mon, 18 Sep 2023 17:38:15 -0300 Subject: [PATCH] don't skip explicit str tags when emitting --- source/dyaml/emitter.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dyaml/emitter.d b/source/dyaml/emitter.d index 5aafc0e..29ebf2e 100644 --- a/source/dyaml/emitter.d +++ b/source/dyaml/emitter.d @@ -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;