Page MenuHomePhabricator

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


Author: codecat42

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


but instead you get


which the software then interprets as a bullet list.

Version: unspecified
Severity: normal



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).

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

{{#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 ***