* src/engine/gnc-commodity-xml-v2.c (set_commodity_value): strip

string before setting things.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4720 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
James LewisMoss 2001-06-18 00:21:57 +00:00
parent 03904ba6fc
commit 76cf4739af

View File

@ -117,6 +117,7 @@ set_commodity_value(xmlNodePtr node, gnc_commodity* com)
if(safe_strcmp(mark->tag, node->name) == 0)
{
gchar* val = dom_tree_to_text(node);
g_strstrip(val);
(mark->func)(com, val);
g_free(val);
break;