summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-24 06:22:25 +0000
committerDavid Robillard <d@drobilla.net>2011-09-24 06:22:25 +0000
commit40a46333d16f4d4857c746044691b844c18c56a1 (patch)
tree8486b89e9a6dba77c23d0c08140da401c39ee36b /raul
parent67ec55501fcb373a663d8347e821430ebd4501af (diff)
downloadraul-40a46333d16f4d4857c746044691b844c18c56a1.tar.gz
raul-40a46333d16f4d4857c746044691b844c18c56a1.tar.bz2
raul-40a46333d16f4d4857c746044691b844c18c56a1.zip
Fix writing of invalid syntax
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3494 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r--raul/AtomRDF.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/raul/AtomRDF.hpp b/raul/AtomRDF.hpp
index b5aa0f4..ec3a638 100644
--- a/raul/AtomRDF.hpp
+++ b/raul/AtomRDF.hpp
@@ -92,10 +92,9 @@ atom_to_node(Sord::Model& model, const Atom& atom)
if (std::isnan(atom.get_float()) || std::isinf(atom.get_float()))
break;
os.precision(8);
+ os << std::fixed << std::showpoint;
os << atom.get_float();
str = os.str();
- if (str.find(".") == std::string::npos)
- str += ".0";
// xsd:decimal -> pretty decimal (float) literals in Turtle
type = sord_new_uri(world.world(), CUC(RAUL_NS_XSD "decimal"));
break;