sphinx-needs
sphinx-needs copied to clipboard
Variant to allow multiple values
It seems not possible to define a variant value with a list of values, i.e I can't do
:my_field: var_a: val1, val2; var_b: val3
only the val1 appears for my_field and variant var_a. if using space, it is seen as a single value.
I understand the complexity of creating a regexp to accept all possibilities
Actually it would be possible if only the ; char was used to separate variant keys and not both , and ;. IMHO this is the simplest fix we could provide for this use case
Another possibility would be to allow the use of [ ] to define a list, something like
:my_field: var_a: [val1, val2]; var_b: val3
but I guess the parsing will be more complex