Last modified: 2012-04-23 18:32:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35682, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33682 - Script adding a redundant row
Script adding a redundant row
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
ProofreadPage (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: ThomasV
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-12 14:26 UTC by Pikne
Modified: 2012-04-23 18:32 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pikne 2012-01-12 14:26:47 UTC
Seems that ProofreadPage now includes a script that replaces <section begin=Name> and <section end=Name> tags around section text with ## Name ## in front of section text while editing. When saving or using a preview it is replaced back in a way that section end tag followed by another section will be in a separate row. 

E.g. "Text of 1st section.<section end=Section1>
<section begin=Section2>Text of 2nd section." becomes into
"Text of 1st section.
<section end=Section1>
<section begin=Section2>Text of 2nd section."

I believe the script should keep the section end tag right after the section text as otherwise an empty row shows up after the section on a page where the section is transcluded.
Comment 1 Beau 2012-04-11 07:50:44 UTC
This function is implemented in a script https://wikisource.org/wiki/MediaWiki:Base.js which must be included on the wiki you are editing. You can disable it for all users by putting the following line:
self.proofreadpage_raw_lst=true;
on MediaWiki:Common.js. You can put it on Special:Mypage/common.js to disable it only for you.
Comment 2 Pikne 2012-04-23 18:25:47 UTC
(In reply to comment #1)
> This function is implemented in a script
> https://wikisource.org/wiki/MediaWiki:Base.js which must be included on the
> wiki you are editing.

To clarify, are you saying that a script implemented on oldwikisource is efficient on all wikisources? I suspect this isn't the case as I don't remember having this problem at the first half of 2011 and they implemented it already in 2010. There is no such script at etwikisource where I ran into the problem. This script was probably developed at the page you linked and is part of the extension now, isn't it?
Comment 3 Beau 2012-04-23 18:32:00 UTC
No. You did not mention what project you that issue on, so you have to check it yourself. Just look at MediaWiki:Common.js page on your project and check if Base.js is referenced there.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links