https://bugzilla.wikimedia.org/show_bug.cgi?id=18994





--- Comment #4 from Dan Nessett <[email protected]>  2009-06-04 17:23:04 UTC 
---
(In reply to comment #3)
> Hang on, so you're saying that removing the linebreak from the *end* of the
> template code removes a linebreak from the *beginning* of the expansion when
> that template is transcluded?
> 

If you would have asked me that question on Monday, I would have said yes. Now
I have to qualify my response. Removing "the linebreak from the 'end' of the
template code" does appear to remove "a linebreak from the 'beginning' of the
expansion when that template is transcluded'" on my personal mediawiki
installation (Mediawiki 1.14.0). However, now that I have moved the Bref
template to Wikibooks, this tactic seems to fail. I am getting extraneous line
feeds before the template transclusion text even when I clean up the line feed
as described. (If you want to see for yourself, go to
User:Dnessett/Template/Bref/Examples and click on Chapter 3 in Example 4 - the
extra line break causes the footnote in the header to break the header
transclusion) Frankly, I am pretty confused about what is going on. There seems
to be something in the template expansion code that inserts line breaks for no
apparent reason. I even tried to bracket the template calls with <span
style="white-space:nowrap"></span> tags (using this idea from the {{nowrap
begin}} {{nowrap end}} templates on Wikipedia), but that doesn't work either.
This is a pernicious problem that I am having trouble solving.


-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to