Permalink
Browse files

+ turns off white space skipping

  • Loading branch information...
artemp committed Jul 26, 2012
1 parent 4fbe353 commit 07ec5c31d0289fb3ddd38224c57ac8a7edbed230
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/json/feature_grammar.cpp
@@ -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>;
-}}
+}}

0 comments on commit 07ec5c3

Please sign in to comment.