Issues

Issue #1367 resolved

Field.make_field regression in nodes.paragraph constructor arguments

Anonymous created an issue

Hi.

ad579c3 (together with the previous patch) causes the following diff on Field.make_field:

  • fieldbody = nodes.field_body('', nodes.paragraph('', '', *content))
  • fieldbody = nodes.field_body('', nodes.paragraph('', '', content))

which causes a raise() below with a 'list' object has no attribute 'parent' when called from previously working user code, since nodes.Element constructor takes the list as "*children".

(quick link to view the diff: https://bitbucket.org/birkenfeld/sphinx/diff/sphinx/util/docfields.py?diff1=b1f4b336ab8d&diff2=c768c64e94eb06638f209fa3ac662c5b2b437243&at=default

)

Comments (3)

  1. Log in to comment