From 52b60c1a8c23f11ab18fad06e0957490c7436e0a Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Wed, 28 May 2014 22:09:50 +0200 Subject: Moved input trimming into XObjectValue namespace * std::string specialization of "get" template method * replaces FunctionTransform local input trimming implemented in 5859cb6 --- src/support/tuple/xobject_value.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/support') diff --git a/src/support/tuple/xobject_value.cc b/src/support/tuple/xobject_value.cc index fac4d96..cdeb9c6 100644 --- a/src/support/tuple/xobject_value.cc +++ b/src/support/tuple/xobject_value.cc @@ -1,5 +1,7 @@ #include "xobject_value.h" +#include + #include #include "support/xalan_string.h" @@ -10,7 +12,7 @@ namespace XObjectValue { template <> std::string get(const xalan::XObjectPtr& ptr) { - return toString(ptr->str()); + return boost::trim_copy(toString(ptr->str())); } template <> -- cgit v1.2.3