On Sat, Sep 19, 2015 at 1:37 PM, Nicolas Vervelle <nvervelle@gmail.com> wrote:
sometimes, the text that I give to the API ends with a new line, but in the result that new line is removed.
Is it normal ? Is there a way around this ?

Yes, it's normal. The workaround is to handle any trailing whitespace you need preserved yourself instead of passing it through the parser.


--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation