When I use this api query, a list of sections of that page is returned:
https://nl.wikipedia.org/w/api.php?action=parse&prop=sections&page=Samenstelling_Tweede_Kamer_1875-1879&format=json
The following query returns the content of the page:
https://nl.wikipedia.org/w/api.php?explaintext=&rvprop=ids&titles=Samenstelling_Tweede_Kamer_1875-1879&prop=extracts|revisions&action=query&format=json
The problem I'm getting is that one of the sections titles (returned by the first query) has 2 spaces
Conservatief-Katholiek (14 zetels)
While the same section title in the body (returned by the second query) does not have this double space:
Conservatief-Katholiek (14 zetels)
I noticed this while using the wikipedia python package. To make my script work I removed the double space from this wikipage, so in order to reproduce this error, the edit has to be removed.
I'm not sure if this is a bug or a feature