= Description = xmlrpc putPage stores unchanged pages into new revisions == Steps to reproduce == You need to enable xmlrpc in your wikiconfig(_local).py and set up a user with write access to the wiki. The name and password has to be replaced in the script {{attachment:test_case2.py}} == Component selection == ## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ... * xmlrpc putPage == Details == this wiki == Workaround == Don't add an empty line at the bottom. e.g. text = ['bla','blub'] = Discussion = The problem is caused from the extra empty line at the bottom {{{text = ['#format %s\n' % markup] + text + ['\n']}}} This extra line is dropped by saving to the page but it is used for comparing the input. This is something between a feature and a bug. PageEditor.saveText checks the content of an existing page by comparison of the new content. If it is different it becomes a new revision. If you add to a new revision an empty line by e.g. xmlrpc putPage then this line is removed during the save process after the comparison found that both pages are different. That ways you store the same content twice. It looks to me currently that some of the pages changed by the gui editor have the same problem. = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: reproduced by [[attachment:test_case2.py]] ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBug