+ turns off white space skipping
This commit is contained in:
parent
4fbe353d4a
commit
07ec5c31d0
1 changed files with 7 additions and 4 deletions
|
@ -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>;
|
||||
|
||||
}}
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue