allow whitespace formatting in variant descriptions (#23853)

This commit is contained in:
Greg Becker 2021-05-26 13:34:13 -07:00 committed by GitHub
parent f1e0053bf4
commit b7f7d901d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,10 +121,12 @@ 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'):
width=self.column_widths[2] description += textwrap.wrap(
) d_line,
width=self.column_widths[2]
)
for t in zip_longest( for t in zip_longest(
name, allowed, description, fillvalue='' name, allowed, description, fillvalue=''
): ):