https://bugzilla.wikimedia.org/show_bug.cgi?id=16700
Summary: Nesting templates lead to excess whitespace Product: MediaWiki Version: unspecified Platform: All URL: http://test.wikipedia.org/wiki/Line- start_flag_lost_when_nesting_templates OS/Version: All Status: NEW Keywords: parser, parsertest Severity: normal Priority: Normal Component: Page rendering AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: morme...@centrum.cz Created an attachment (id=5594) --> (https://bugzilla.wikimedia.org/attachment.cgi?id=5594) Parser test showing the problem and the expected output Some wikitext constructions depend on whether we are at the start of a line, or not. This is tracked using a flag called lineStart. However, the parser preprocessor loses track of this flag when a nested template is used. See http://test.wikipedia.org/wiki/Line-start_flag_lost_when_nesting_templates – it uses {{Top-level template}}, which is only a call to {{Subtemplate}}. The parser thinks the list contained in {{Subtemplate}} is not at the line start (even though it is, in fact), so that (according to bug 529 behavior) it prepends a newline, which appears as a redundant paragraph on output. If {{subtemplate}} is called directly, the paragraph disappears, and the output is correct. See the attached parser test. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l