Browse Source

Should have used the param's name here instead of its value.

tags/v0.2
Ben Kurtovic 12 years ago
parent
commit
6413ae21da
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mwparserfromhell/nodes/template.py

+ 3
- 3
mwparserfromhell/nodes/template.py View File

@@ -249,11 +249,11 @@ class Template(Node):
if not force_nonconformity: if not force_nonconformity:
before_n, after_n = self._get_spacing_conventions(use_names=True) before_n, after_n = self._get_spacing_conventions(use_names=True)
if before_n and after_n: if before_n and after_n:
name = parse_anything([before_n, value, after_n])
name = parse_anything([before_n, name, after_n])
elif before_n: elif before_n:
name = parse_anything([before_n, value])
name = parse_anything([before_n, name])
elif after_n: elif after_n:
name = parse_anything([value, after_n])
name = parse_anything([name, after_n])


before_v, after_v = self._get_spacing_conventions(use_names=False) before_v, after_v = self._get_spacing_conventions(use_names=False)
if before_v and after_v: if before_v and after_v:


Loading…
Cancel
Save