According to
http://www.lukas-renggli.ch/blog/petitparser-1, "p trim Trims
whitespaces before and after p".
However, the following snippet seems not to trim the whitespace at the end
of the second parser:
stringToParse := 'class=" aClass "'.
parser := ('class="' asParser, $" asParser negate plus trim flatten,
'"'
asParser) ==> [ :nodes | nodes second ].
result := parser parse: stringToParse.
self assert: result = 'aClass'. "actually returns ' aClass '"
Should it be stripping the trailing space?
Thanks.
Sean
--
View this message in context:
http://forum.world.st/PetitParser-trim-bug-tp3059805p3059805.html
Sent from the Moose mailing list archive at
Nabble.com.