useblocks / sphinx-needs

Adds needs/requirements to sphinx
https://sphinx-needs.readthedocs.io/en/latest/index.html
MIT License
209 stars 66 forks source link

Allow trailing comma for link options #1271

Closed ubmarco closed 3 weeks ago

ubmarco commented 4 weeks ago

This code

.. release:: RE_2024_12
   :id: RE_2024_12
   :contains:
      feat1,
      feat2,

leads to

WARNING: Need 'RE_2024_12' has unknown outgoing link '' in field 'contains' [needs.link_outgoing]

This is unexpected for link options as they are lists. Allowing trailing commas makes reordering of items easier as I don't have to care about setting the commas correctly. Just like in Python.