+ turns off white space skipping

This commit is contained in:
artemp 2012-07-26 11:45:34 +01:00
parent 4fbe353d4a
commit 07ec5c31d0

View file

@ -99,10 +99,13 @@ feature_grammar<Iterator,FeatureType>::feature_grammar(mapnik::transcoder const&
("\\r", '\r') // carrige return
("\\t", '\t') // tab
;
string_ %= lit('"') >> *(unesc_char | "\\u" >> hex4 | (char_ - lit('"'))) >> lit('"')
#if BOOST_VERSION > 104200
string_ %= lit('"') >> no_skip[*(unesc_char | "\\u" >> hex4 | (char_ - lit('"')))] >> lit('"')
;
#else
string_ %= lit('"') >> lexeme[*(unesc_char | "\\u" >> hex4 | (char_ - lit('"')))] >> lit('"')
;
#endif
// geojson types
feature_type = lit("\"type\"")
@ -224,4 +227,4 @@ feature_grammar<Iterator,FeatureType>::feature_grammar(mapnik::transcoder const&
template struct mapnik::json::feature_grammar<std::string::const_iterator,mapnik::Feature>;
template struct mapnik::json::feature_grammar<boost::spirit::multi_pass<std::istreambuf_iterator<char> >,mapnik::Feature>;
}}
}}