@@ -334,8 +334,8 @@ def __doc__(self):
334
334
335
335
Parameters
336
336
----------
337
- pat : str/regex
338
- If specified only options matching `prefix*` will be reset.
337
+ pat : str/regex
338
+ If specified only options matching `prefix*` will be reset.
339
339
Note: partial matches are supported for convenience, but unless you
340
340
use the full option name (e.g. x.y.z.option_name), your code may break
341
341
in future versions if new options with similar names are introduced.
@@ -368,7 +368,7 @@ class option_context(object):
368
368
Context manager to temporarily set options in the `with` statement context.
369
369
370
370
You need to invoke as ``option_context(pat, val, [(pat, val), ...])``.
371
-
371
+
372
372
Examples
373
373
--------
374
374
@@ -628,20 +628,21 @@ def _build_option_description(k):
628
628
o = _get_registered_option (k )
629
629
d = _get_deprecated_option (k )
630
630
631
- s = u ('%s : ' ) % k
632
- if o :
633
- s += u ('[default: %s] [currently: %s]' ) % (o .defval ,
634
- _get_option (k , True ))
631
+ s = u ('%s ' ) % k
635
632
636
633
if o .doc :
637
- s += '\n ' .join (o .doc .strip ().split ('\n ' ))
634
+ s += '\n ' .join (o .doc .strip ().split ('\n ' ))
638
635
else :
639
- s += 'No description available.\n '
636
+ s += 'No description available.'
637
+
638
+ if o :
639
+ s += u ('\n [default: %s] [currently: %s]' ) % (o .defval ,
640
+ _get_option (k , True ))
640
641
641
642
if d :
642
643
s += u ('\n \t (Deprecated' )
643
644
s += (u (', use `%s` instead.' ) % d .rkey if d .rkey else '' )
644
- s += u (')\n ' )
645
+ s += u (')' )
645
646
646
647
s += '\n \n '
647
648
return s
0 commit comments