Commits

Doug Hellmann  committed 2b7a671

Include Text as well as Inline nodes in the content for function arguments

  • Participants
  • Parent commits ac60ee4

Comments (0)

Files changed (1)

File sphinx/util/docfields.py

             if is_typefield:
                 # filter out only inline nodes; others will result in invalid
                 # markup being written out
-                content = filter(lambda n: isinstance(n, nodes.Inline), content)
+                content = filter(
+                    lambda n: isinstance(n, nodes.Inline) or isinstance(n, nodes.Text),
+                    content)
                 if content:
                     types.setdefault(typename, {})[fieldarg] = content
                 continue