Last modified: 2014-02-12 23:32:42 UTC
I'm issuing this request: ?action=query&export=&exportnowrap&titles=SusData:testpage&redirects= and the content of element <mediawiki><page><revision><text> is all one long line. I also tried it by getting a revision with the following: ?action=query&prop=revisions&rvprop=content&rvlimit=1&titles=SusData:testpage&redirects=&format=xml Newlines are preserved with format=xmlfm, but, NOT with format=xml. Using xmlfm would require two parsings of the output, one for HTML and a second for XML. I don't know of a workaround, but would like to know if there is one. Thanks, al
New lines are represented by \n
My apologies, Chrome was removing them; had to view source to see them.
Glad you found out the reason (and thanks for sharing it here for the next person running into the same problem!)