[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 Krinkle krinklem...@gmail.com changed: What|Removed |Added CC||krinklem...@gmail.com --- Comment #14 from Krinkle krinklem...@gmail.com 2011-09-30 00:24:06 UTC --- As a confirmation: This bug is still happening on MediaWiki 1.18. Steps to reproduce: * Edit or create a wiki page and insert 10 lines on top of the page. * Save the page * Any of these: *1) Go to edit mode, save the page. *2) Go to edit mode, change a word, save the page *3) Go to edit mode, change word, preview, preview, preview, save the page Expected result: 1) nothing happends, null edit, no revision 2) One word changed 3) One word changed Actual result: 1) An edit removing the first line is saved 2) An edit removing the first line and changing a word is saved 3) An edit changing a word and removing the first 4 lines (every hit on preview chopped one more line) Proposed change: Trim leading whitespace in the parser before saving, just like with trailing whitespace. Never to be saved to the database. This means on existing pages it will be trimmed in 1 edit alltogether. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 Mark A. Hershberger m...@everybody.org changed: What|Removed |Added Priority|Low |Highest CC||m...@everybody.org -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 Bawolff bawolff...@gmail.com changed: What|Removed |Added CC||bawolff...@gmail.com --- Comment #15 from Bawolff bawolff...@gmail.com 2011-09-30 02:49:35 UTC --- Alternative solution (if there's a usecase for having leading whitespace. Not sure if there is, and if there isn't, might as well strip it. However templates might want leading whitespace in certain circumstances maybe - not sure): I'm pretty sure this behaviour comes about because if someone writes in html something like textarea foo /textarea They'd assume the first newline is not part of the textarea (because its prettier to write tags on their own line). Solution would be prefix with an extra newline if the textarea's value starts with a newline. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 --- Comment #13 from mybugs.m...@gmail.com 2011-09-27 11:18:44 UTC --- (In reply to comment #11) *** Bug 26028 has been marked as a duplicate of this bug. *** FIY: For an example of how this affects Wikisources, making it necessary to use a hack[1] on various pages, see [[Wikisource:Scriptorium/Archives/2010-12#Why_line_breaks_are_removed.3F]] (and bug 26028 comment 0). [1]https://secure.wikimedia.org/wikipedia/sources/wiki/Wikisource_talk:ProofreadPage#ProofreadPage_eats_.5Cn -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 ThomasV thoma...@gmx.de changed: What|Removed |Added CC||mybugs.m...@gmail.com --- Comment #10 from ThomasV thoma...@gmx.de 2010-11-21 13:34:31 UTC --- *** Bug 26028 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 --- Comment #11 from mybugs.m...@gmail.com 2010-11-21 16:47:30 UTC --- *** Bug 26028 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 12130] Edit form eats heading CRs (leading blank newlines/whitespace) on save/preview
https://bugzilla.wikimedia.org/show_bug.cgi?id=12130 Brion Vibber br...@wikimedia.org changed: What|Removed |Added CC||br...@wikimedia.org Summary|Edit form eats heading CRs |Edit form eats heading CRs |on save/preview |(leading blank ||newlines/whitespace) on ||save/preview --- Comment #9 from Brion Vibber br...@wikimedia.org 2009-01-20 03:22:46 UTC --- Updated summary to make the bug easier to search for. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l