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