As shown with this diff on enwiki the .touch() method removes whitespace at the end of the page.
It should be possible to prevent edits that can modify the content, since many users expect touch() to be quiet in recent changes, edit history, etc.
As shown with this diff on enwiki the .touch() method removes whitespace at the end of the page.
It should be possible to prevent edits that can modify the content, since many users expect touch() to be quiet in recent changes, edit history, etc.
The spaces at the end of the page should never exist and if they do exist, this is a correct behavior. This is not produced by Pywikibot, but by MediaWiki API itself, we can do nothing about it.
But that would prevent to touch the page containing whitespace at the end at all. There is no other way to touch the page without removing the whitespace. You can use -botflag to avoid flooding RC
Yeah, that's the price the operator would pay, but probably they want to touch a lot of pages and the rest would be touched.