Permalink
Browse files

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

  • Loading branch information...
earwig committed Oct 28, 2012
1 parent b447e7b commit 6413ae21da70a64cbbb0043f08bd6f5ee37c0de9
Showing with 3 additions and 3 deletions.
  1. +3 −3 mwparserfromhell/nodes/template.py
@@ -249,11 +249,11 @@ def add(self, name, value, showkey=None, force_nonconformity=False):
if not force_nonconformity:
before_n, after_n = self._get_spacing_conventions(use_names=True)
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:
name = parse_anything([before_n, value])
name = parse_anything([before_n, name])
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)
if before_v and after_v:

0 comments on commit 6413ae2

Please sign in to comment.