瀏覽代碼

Fix docstring for Wikicode.strip_code().

tags/v0.3.3
Ben Kurtovic 10 年之前
父節點
當前提交
454890ab0d
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. +5
    -5
      mwparserfromhell/wikicode.py

+ 5
- 5
mwparserfromhell/wikicode.py 查看文件

@@ -527,11 +527,11 @@ class Wikicode(StringMixIn):
"""Return a rendered string without unprintable code such as templates. """Return a rendered string without unprintable code such as templates.


The way a node is stripped is handled by the 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 ``Σ``, ``Σ``, further, such as converting HTML entities like ``Σ``, ``Σ``,
and ``Σ`` to ``Σ``. If *collapse* is ``True``, we will try to and ``Σ`` to ``Σ``. If *collapse* is ``True``, we will try to
remove excess whitespace as well (three or more newlines are converted remove excess whitespace as well (three or more newlines are converted


Loading…
取消
儲存