User:SDrewthbot/trim trailing LF

trim trailing LF
An amendment to the code to Proofread Page extension has fixed one problem and caused another. Rather than stop proofreading or to cause too much confusion to users, it was suggested that we get a bot to correct the error quietly, and the bot operation linked to here is that fix. If you are really interested in the lead-in discussion, please follow the [//en.wikisource.org/w/index.php?title=Wikisource:Scriptorium&oldid=3487965#Extra_linebreaks_being_inserted_in_Page_space reference link]. This bot will continue to run this task on a regular basis until the mediawiki application has been fixed. — billinghurst  sDrewth  05:40, 19 October 2011 (UTC)

Synopsis
The below data relates to fixes initially undertake for enWS, and per a request for the fix to be implemented at laWS. Subsequently there was [//wikisource.org/w/index.php?title=Wikisource:Scriptorium&oldid=321090 a mulWS request] for this fix to be applied more widely through the xxWS community. &hellip;

The bot will run through the broader WS wiki space with this bot account, though not with a bot right slowly fixing these edits. To note that the communities fr/de/it will not be part of the fix due to local fixes being undertaken.

Query being run to determine Page:s edited. noting that where the Page: namespace is not 104, that will be modified as required. As runs are being undertaken they will appear below.
 * https:// .wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml

Technical
The query to grab edits is based on a query of the API where the time is varied to get the next group of edits. This query is used with w:Wikipedia:AutoWikiBrowser — to make the list, utilise the HTML Scraper (with advanced Regex), the url is plugged in and the filter used  with group set to. Note that with AWB HTML scraper that it will grab a maximum of 500 hits, so if the list is going to be bigger than 5000, then shorter timer periods should be searched in spans to build the great list.
 * [//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-21T12:00:00Z&rcend=2011-10-19T12:00:00Z&rcshow=!bot&rclimit=5000&format=xml //en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-21T12:00:00Z&rcend=2011-10-19T12:00:00Z&rcshow=!bot&rclimit=5000&format=xml]

The replacement to undertake is
 * with  replaced with

Update — As there was noted that it would be preferable for their to be a line feed between &lt; &lt;references/>, I will add one in. — billinghurst  sDrewth  13:07, 29 October 2011 (UTC)

To note, that at enWS the first error noted was at 16 October 2011‎ 23:13 UTC this equates to  and fix occurred sometime prior to 21:21, 28 October 2011

//toolserver.org/~phe/statistics.php?diff=14&daysago=0 toolserver.org/~phe/statistics.php?diff=14&daysago=0

en
✅ — billinghurst  sDrewth  21:24, 28 October 2011 (UTC)
 * 1) 18 October c. 1200 UTC
 * 2) 21 Oct c. 1200 UTC
 * 3) 22 Oct c.1500 UTC &hellip; [//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-22T15:00:00Z&rcend=2011-10-21T12:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-22T15:00:00Z&rcend=2011-10-21T12:00:00Z&]
 * 4) 23 Oct c.1415 UTC &hellip; [//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-23T14:00:00Z&rcend=2011-10-22T15:00:00Z&rcshow=!bot&rclimit=5000&format=xml rcstart=2011-10-23T14:00:00Z&rcend=2011-10-22T15:00:00Z]
 * 5) 25 Oct c.1130 UTC &hellip; [//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-25T10:00:00Z&rcend=2011-10-23T14:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-25T10:00:00Z&rcend=2011-10-23T14:00:00Z]
 * 6) 26 Oct c.1200 UTC &hellip; [//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-26T12:00:00Z&rcend=2011-10-25T10:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-26T12:00:00Z&rcend=2011-10-25T10:00:00Z]
 * 7) 28 Oct 1000 UTC &hellip; [//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T10:00:00Z&rcend=2011-10-26T12:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-28T10:00:00Z&rcend=2011-10-26T12:00:00Z]
 * 8) 28 Oct 2100 UTC &hellip; [[//en.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-28T10:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-28T21:00:00Z&rcend=2011-10-28T10:00:00Z]

la
✅ — billinghurst  sDrewth  03:34, 29 October 2011 (UTC)
 * 1) 25 Oct c.1130 UTC &hellip; [//la.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-25T10:00:00Z&rcend=2011-10-16T22:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-25T10:00:00Z&rcend=2011-10-16T22:00:00Z]
 * 2) 29 Oct 0100 UTC &hellip; [//la.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-25T10:00:00Z&rcshow=!bot&rclimit=5000&format=xml &rcstart=2011-10-28T21:00:00Z&rcend=2011-10-25T10:00:00Z]

mul
✅
 * 1) 29 Oct 1430 UTC &hellip; [//wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml &rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z]

br
✅ — billinghurst  sDrewth  04:20, 30 October 2011 (UTC)
 * 1) 29 Oct 1530 UTC &hellip; [//br.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml &rcnamespace=102&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z]

sl
✅
 * 1) 30 Oct 0400 UTC &hellip;
 * 2) *[//sl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-20T21:00:00Z&rcshow=!bot&rclimit=500&format=xml &rcnamespace=100&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-20T21:00:00Z]
 * 3) *[//sl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-20T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml &rcnamespace=100&rcstart=2011-10-20T21:00:00Z&rcend=2011-10-16T23:00:00Z]

no
31 Oct 1130 UTC &hellip; https://no.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml

✅ — billinghurst  sDrewth  14:47, 31 October 2011 (UTC)

hy
31 Oct 1200 UTC &hellip; ✅ 14:47, 31 October 2011 (UTC)
 * https://hy.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-22T20:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://hy.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-22T20:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml

ca
1 Nov 0245 UTC &hellip; ✅ — billinghurst  sDrewth  09:48, 1 November 2011 (UTC)
 * https://ca.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml

ru
1 Nov 1000 UTC
 * https://ru.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=104&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml

pl
❌ 1400+ pages, approaching community for approval for bot. — billinghurst  sDrewth  10:17, 1 November 2011 (UTC)
 * https://pl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-18T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://pl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-20T21:00:00Z&rcend=2011-10-18T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://pl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-22T21:00:00Z&rcend=2011-10-20T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://pl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-25T21:00:00Z&rcend=2011-10-22T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://pl.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=100&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-25T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * Not required. Undertaken by pl:User:AkBot — billinghurst  sDrewth  10:35, 1 November 2011 (UTC)

es
4 Nov 1000 UTC ❌ 1700+ pages, approaching community for [ approval for bot], or to fix themselves. — billinghurst  sDrewth  11:01, 1 November 2011 (UTC)
 * https://es.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-18T21:00:00Z&rcend=2011-10-16T23:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://es.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-20T21:00:00Z&rcend=2011-10-18T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://es.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-22T21:00:00Z&rcend=2011-10-20T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://es.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-25T21:00:00Z&rcend=2011-10-22T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * https://es.wikisource.org/w/api.php?action=query&list=recentchanges&rcnamespace=102&rcstart=2011-10-28T21:00:00Z&rcend=2011-10-25T21:00:00Z&rcshow=!bot&rclimit=500&format=xml
 * ✅ Bot status granted, work undertaken.

All wikis completed by respective communities, otherwise undertaken by SDrewthbot. ✅ — billinghurst  sDrewth  13:27, 4 November 2011 (UTC)