Page MenuHomePhabricator

A newline is prepended to a module invocation that returns text starting with an asterisk
Closed, ResolvedPublic

Description

Author: codecat42

Description:
When the invocation of a module returns text with an asterisk as the first character, Scribunto prepends a newline to the text. This is obviously undesirable because it makes it impossible to do any further processing on the output of such an invocation.

To reproduce:

  • Make a module with a function that returns "*test"
  • Write in a wiki page: test{{#invoke:(your module)|(your function)}}

You'd expect this to return

test*test

but instead you get

test
*test

which the software then interprets as a bullet list.


Version: unspecified
Severity: normal

Details

Reference
bz52548

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:53 AM
bzimport set Reference to bz52548.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Aug 5 2013, 3:39 PM

This is yet another clever feature of MediaWiki's parser, see bug 12974.

Anomie added a comment.Aug 5 2013, 3:45 PM

{{#invoke}} is a parser function, so this is a duplicate, not just a "depends on".

  • This bug has been marked as a duplicate of bug 12974 ***
Blahma added a subscriber: Blahma.Mar 4 2015, 11:29 PM
onei added a subscriber: onei.Mar 10 2015, 2:14 PM