Last modified: 2012-10-27 18:38:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1878 - Templates insert newline character at the beginning
Templates insert newline character at the beginning
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-12 22:03 UTC by Michael Zajac
Modified: 2012-10-27 18:38 UTC (History)
5 users (show)

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


Attachments

Description Michael Zajac 2005-04-12 22:03:25 UTC
Templates insert a single newline character at the beginning of text (not an HTML break tag (<br />)).  This usually 
has no effect because HTML compresses all whitespace into a single space.  But when a template appears inline in a 
sentence this can add an undesirable space.  

Examples are the use of [[w:Template:IPA]], which is often placed within brackets.

I'm pretty sure wikimedia *didn't* do this until a few weeks ago.
Comment 1 Michael Zajac 2005-04-12 22:06:31 UTC
Actually, I'm not sure if it's a linefeed, newline, or carriage return.

> Examples are the use of ...

That should link to [[Template:IPA]], documented at [[Template talk:IPA]].  This also often affects the rendering of [[Template:Unicode]].
Comment 2 Michael Zajac 2005-04-12 22:20:39 UTC
This may be related to Bug 1146 (although I haven't seen that one on en.wikipedia.org).
Comment 3 Ævar Arnfjörð Bjarmason 2005-04-12 22:21:53 UTC
I'm unable to reproduce this in HEAD or REL1_4, it does happen on the wikimedia
sites though.
Comment 4 Puzzlet Chung 2005-11-29 15:03:34 UTC
I don't know this is related, but when you put <div> around an included template
which also quotes another template with more than one paragraph, an unexpected
<p> is inserted to the doubly embedded template.

See: http://ko.wikipedia.org/wiki/Uesr:PuzzletChung/tmp/Bug_1878
Comment 6 Andrew Dunbar 2006-05-08 18:56:46 UTC
On Wiktionary I just ran into this problem but I thought 
it was inserting a newline at the end rather than the 
beginning, since edited article text including templates 
always ends with a newline.

Oddly, on trying and failing to work around this with 
<noinclude>, the resulting space disappeared after 
reverting the failed fixes. I took this as proof of 
inconsistent behaviour, which is even worse.
Comment 7 Danny B. 2011-06-13 23:03:27 UTC
I am nearly sure this must be regression now, because it *used to* work properly and now I see the new line back again.

Raising the importance, as it causes issues in rendering and should be solved ASAP, please.
Comment 8 db [inactive,noenotif] 2012-10-27 18:38:32 UTC
maybe related: bug 12974

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


Navigation
Links