allow whitespace formatting in variant descriptions (#23853)
This commit is contained in:
parent
f1e0053bf4
commit
b7f7d901d1
@ -121,10 +121,12 @@ def lines(self):
|
||||
)
|
||||
allowed = v.allowed_values.replace('True, False', 'on, off')
|
||||
allowed = textwrap.wrap(allowed, width=self.column_widths[1])
|
||||
description = textwrap.wrap(
|
||||
v.description,
|
||||
width=self.column_widths[2]
|
||||
)
|
||||
description = []
|
||||
for d_line in v.description.split('\n'):
|
||||
description += textwrap.wrap(
|
||||
d_line,
|
||||
width=self.column_widths[2]
|
||||
)
|
||||
for t in zip_longest(
|
||||
name, allowed, description, fillvalue=''
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user