Browse Source

Fix a bug in rendering Tags; attrs->attributes; update documentation.

tags/v0.3
Ben Kurtovic 11 years ago
parent
commit
146d1fd006
3 changed files with 9 additions and 2 deletions
  1. +1
    -0
      docs/api/mwparserfromhell.nodes.rst
  2. +6
    -0
      docs/api/mwparserfromhell.rst
  3. +2
    -2
      mwparserfromhell/nodes/tag.py

+ 1
- 0
docs/api/mwparserfromhell.nodes.rst View File

@@ -46,6 +46,7 @@ nodes Package

.. automodule:: mwparserfromhell.nodes.tag
:members:
:undoc-members:
:show-inheritance:

:mod:`template` Module


+ 6
- 0
docs/api/mwparserfromhell.rst View File

@@ -30,6 +30,12 @@ mwparserfromhell Package
:members:
:undoc-members:

:mod:`tag_defs` Module
----------------------

.. automodule:: mwparserfromhell.tag_defs
:members:

:mod:`utils` Module
-------------------



+ 2
- 2
mwparserfromhell/nodes/tag.py View File

@@ -65,7 +65,7 @@ class Tag(TagDefinitions, Node):
result += self.open_padding + "/>"
else:
result += self.open_padding + ">" + str(self.contents)
result += "</" + self.closing_tag + ">"
result += "</" + str(self.closing_tag) + ">"
return result

def __iternodes__(self, getter):
@@ -126,7 +126,7 @@ class Tag(TagDefinitions, Node):
return self._contents

@property
def attrs(self):
def attributes(self):
"""The list of attributes affecting the tag.

Each attribute is an instance of :py:class:`~.Attribute`.


Loading…
Cancel
Save