Fixed a minor output formatting bug.
This commit is contained in:
parent
5f2cc8791d
commit
b6ecb80f4b
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue