From 454890ab0db70379303c7ea7e4b738cf291425b3 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 16 Apr 2014 17:23:03 -0400 Subject: [PATCH] Fix docstring for Wikicode.strip_code(). --- mwparserfromhell/wikicode.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mwparserfromhell/wikicode.py b/mwparserfromhell/wikicode.py index 4f5cd1a..44515a6 100644 --- a/mwparserfromhell/wikicode.py +++ b/mwparserfromhell/wikicode.py @@ -527,11 +527,11 @@ class Wikicode(StringMixIn): """Return a rendered string without unprintable code such as templates. The way a node is stripped is handled by the - :py:meth:`~.Node.__showtree__` method of :py:class:`~.Node` objects, - which generally return a subset of their nodes or ``None``. For - example, templates and tags are removed completely, links are stripped - to just their display part, headings are stripped to just their title. - If *normalize* is ``True``, various things may be done to strip code + :py:meth:`~.Node.__strip__` method of :py:class:`~.Node` objects, which + generally return a subset of their nodes or ``None``. For example, + templates and tags are removed completely, links are stripped to just + their display part, headings are stripped to just their title. If + *normalize* is ``True``, various things may be done to strip code further, such as converting HTML entities like ``Σ``, ``Σ``, and ``Σ`` to ``Σ``. If *collapse* is ``True``, we will try to remove excess whitespace as well (three or more newlines are converted