diff --git a/dyaml/constructor.d b/dyaml/constructor.d index e14e192..69c3d69 100644 --- a/dyaml/constructor.d +++ b/dyaml/constructor.d @@ -328,6 +328,11 @@ final class Constructor enforce((tag in *delegates!T) !is null, new Error("No constructor function from " ~ type ~ " for tag " ~ tag.get(), start, end)); + + static if(is(T : string)) { + value = strip(value); + } + Node node = Node(value); try { diff --git a/test/src/common.d b/test/src/common.d index 7248656..6ba4c4f 100644 --- a/test/src/common.d +++ b/test/src/common.d @@ -36,7 +36,7 @@ void run(F ...)(string testName, void function(bool, F) testFunction, { immutable string dataDir = "test/data"; auto testFilenames = findTestFilenames(dataDir); - bool verbose = true; + bool verbose = false; Result[] results; if(unittestExt.length > 0)