@ -1296,9 +1296,10 @@ class DocCLI(CLI, RoleMixin):
if doc . get ( ' description ' ) :
if doc . get ( ' description ' ) :
if isinstance ( doc [ ' description ' ] , list ) :
if isinstance ( doc [ ' description ' ] , list ) :
desc = " " . join ( doc [ ' description ' ] )
desc s = doc [ ' description ' ]
else :
else :
desc = doc [ ' description ' ]
descs = [ doc [ ' description ' ] ]
for desc in descs :
text . append ( " %s " % DocCLI . warp_fill ( DocCLI . tty_ify ( desc ) , limit , initial_indent = opt_indent , subsequent_indent = opt_indent ) )
text . append ( " %s " % DocCLI . warp_fill ( DocCLI . tty_ify ( desc ) , limit , initial_indent = opt_indent , subsequent_indent = opt_indent ) )
text . append ( ' ' )
text . append ( ' ' )
@ -1355,11 +1356,12 @@ class DocCLI(CLI, RoleMixin):
text . append ( " > %s %s ( %s ) " % ( plugin_type . upper ( ) , _format ( doc . pop ( ' plugin_name ' ) , ' bold ' ) , doc . pop ( ' filename ' ) ) )
text . append ( " > %s %s ( %s ) " % ( plugin_type . upper ( ) , _format ( doc . pop ( ' plugin_name ' ) , ' bold ' ) , doc . pop ( ' filename ' ) ) )
if isinstance ( doc [ ' description ' ] , list ) :
if isinstance ( doc [ ' description ' ] , list ) :
desc = " " . join ( doc . pop ( ' description ' ) )
desc s = doc . pop ( ' description ' )
else :
else :
desc = doc . pop ( ' description ' )
desc s = [ doc . pop ( ' description ' ) ]
text . append ( ' ' )
text . append ( ' ' )
for desc in descs :
text . append ( DocCLI . warp_fill ( DocCLI . tty_ify ( desc ) , limit , initial_indent = base_indent , subsequent_indent = base_indent ) )
text . append ( DocCLI . warp_fill ( DocCLI . tty_ify ( desc ) , limit , initial_indent = base_indent , subsequent_indent = base_indent ) )
if display . verbosity > 0 :
if display . verbosity > 0 :