Fixed a minor output formatting bug.

This commit is contained in:
Kiith-Sa 2012-12-27 20:11:57 +01:00
parent 5f2cc8791d
commit b6ecb80f4b

View file

@ -510,7 +510,7 @@ Node representReal(ref Node node, Representer representer) @system
f == -1.0 * real.infinity ? "-.inf": f == -1.0 * real.infinity ? "-.inf":
{auto a = appender!string; {auto a = appender!string;
formattedWrite(a, "%12f", f); formattedWrite(a, "%12f", f);
return a.data;}(); return a.data.strip();}();
return representer.representScalar("tag:yaml.org,2002:float", value); return representer.representScalar("tag:yaml.org,2002:float", value);
} }