Happy-melon <> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED
         AssignedTo|wikibug...@lists.wikimedia. |
                   |org                         |

--- Comment #27 from Happy-melon <> 2010-01-26 00:27:14 UTC 
Created an attachment (id=7019)
 --> (

It's generally trivial: just add a linebreak in the calling table:

| {{template-without-block-level-wikimarkup}}

If the outer markup expects block-level content, it should be on a new line. 
The comment you refer to is just putting the cart before the horse to try and
fix this in the subtemplate; templates generating extra whitespace is a big
enough problem as it is. Of course, their specific problem is with the newline
position of the #ask: parser function getting lost somewhere, but their
implementation puts the contents of the #ask on a newline whether or not that's
desired.  Linestart status should be decided from the top down, where people
can actually see what the transclusions are doing, not blind-guessed from the
inside out.  However, as was pointed out in that thread, adding anything; be it
an nbsp, <nowiki/> tag, etc, reproduces the effect they wanted.

In the testcases attached, the existing implementation (with the hack) breaks
cases 5, 6, 7 & 8.  Without the hack, cases 1 and 3 break, assuming that
block-start functionality is always desired.  If the inner template should
sometimes exhibit block-level functionality and sometimes not, of course,
there's no way to produce that with the hack in place, although that's an
unlikely situation.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

Wikibugs-l mailing list

Reply via email to