Last modified: 2011-07-15 04:20:34 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 T18116, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16116 - ?action=edit&section=new shouldn't put a newline above text when no section heading is given
?action=edit&section=new shouldn't put a newline above text when no section h...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikibooks.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-25 19:51 UTC by Mike.lifeguard
Modified: 2011-07-15 04:20 UTC (History)
3 users (show)

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


Attachments

Description Mike.lifeguard 2008-10-25 19:51:26 UTC
Currently if you don't put anything in the section heading, the text is appended with a blank line above it. Please remove that blank line.
Comment 1 Siebrand Mazeland 2009-01-11 14:34:58 UTC
Issue in the same area:

1. create a page with 2 sections
2. remove the middle section

Observed: the two remaining sections are separated with an additional newline.

Expected: no additional newline should remain after removing a section.
Comment 2 Siebrand Mazeland 2009-01-11 14:38:14 UTC
Ugh: 1. Create a page with 3 sections :)
Comment 3 Mike.lifeguard 2009-01-11 17:46:10 UTC
(In reply to comment #1)
> Issue in the same area:
> 
> 1. create a page with 3 sections
> 2. remove the middle section
> 
> Observed: the two remaining sections are separated with an additional newline.
> 
> Expected: no additional newline should remain after removing a section.
> 

That's the same thing I described in bug 14938, though you did a much better job :)
Comment 4 Siebrand Mazeland 2009-02-01 19:06:45 UTC
I think the described behaviour is expected behaviour. Adding a section without a heading is adding a paragraph. If no leading whitespace would be added, the text would be appended to previous paragraph (if that is not a heading), which would be counter-intuitive. Proposing to close as either INVALID or WONTFIX (with a preference for the former).
Comment 5 Dan Collins 2011-07-15 04:20:34 UTC
Closing invalid, here is my reasoning:

If the extra linebreak were not added, adding a 'section' without a heading would not add a new anything at all, but rather append text to the last paragraph. I wasn't aware that using section=new without a heading was actually used by anyone, but it makes more sense to have the new text begin a new paragraph. If it did not, do so by default, then users who wanted to add a new paragraph would have to leave the first line of the edit box blank, which is unintuitive.

If the issue described in comment 1 is someone that anyone wants fixed, go ahead and make a bug for it, that actually does sound like a bug.

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


Navigation
Links