mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Make make check happy.
This commit is contained in:
3
Makefile
3
Makefile
@@ -9,7 +9,8 @@ all: clean-pyc check test
|
||||
check:
|
||||
@$(PYTHON) utils/check_sources.py -i build -i dist -i sphinx/style/jquery.js \
|
||||
-i sphinx/pycode/pgen2 -i sphinx/util/smartypants.py -i .ropeproject \
|
||||
-i doc/_build -i ez_setup.py -i tests/path.py -i tests/coverage.py -i env .
|
||||
-i doc/_build -i ez_setup.py -i tests/path.py -i tests/coverage.py \
|
||||
-i env -i .tox .
|
||||
|
||||
clean: clean-pyc clean-patchfiles
|
||||
|
||||
|
@@ -223,7 +223,8 @@ class DocFieldTransformer(object):
|
||||
# filter out only inline nodes; others will result in invalid
|
||||
# markup being written out
|
||||
content = filter(
|
||||
lambda n: isinstance(n, nodes.Inline) or isinstance(n, nodes.Text),
|
||||
lambda n: isinstance(n, nodes.Inline) or
|
||||
isinstance(n, nodes.Text),
|
||||
content)
|
||||
if content:
|
||||
types.setdefault(typename, {})[fieldarg] = content
|
||||
|
Reference in New Issue
Block a user