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