TextExtracts renders both single and double line breaks in wikitext as "\n"
This is problematic because single line breaks in wikitext render in the browser as a space, while double line breaks in wikitext render in browser as a new line. This makes it impossible for me to determine from the API's response whether or not a line break really exists in the article. As a result, I cannot accurately apply my grammar parsing tools to these articles. To fix this problem, I would like for single linebreaks to be sent as " " (space) so that the API call accurately reflects the contents of the page.
API call of sandbox: https://en.wikipedia.org/w/api.php?action=query&prop=extracts&explaintext&redirects&format=json&titles=User:Sam_at_Megaputer/sandbox
Actual sandbox: https://en.wikipedia.org/wiki/User:Sam_at_Megaputer/sandbox