Pull requests

#149 Merged
Repository
Deleted repository
Branch
default (99289a20ecf3)
Repository
birkenfeld/sphinx sphinx
Branch
default

Fix #1203: Do not append space to unknown field names.

Author
  1. Rob Ruana
Reviewers
Description

Fixes Issue #1203, including tests.

sphinx.util.docfields.DocFieldTransformer incorrectly appends a space to unknown field names in python doc strings. The transform() method fails to take into account field names that are declared without any field arguments.

The fix conditionally appends the field arguments to the field name, only if the arguments are not empty.

Comments (1)