-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format options for doctest directives #13107
Conversation
|
||
Whether to trim remove doctest flags (comments looking like | ||
``# doctest: FLAG, ...``) at the ends of lines and ``<BLANKLINE>`` markers | ||
individually. Default is ``trim-doctest-flags``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a :default:
option to .. rst:directive:option::
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically yes. In practice, I believe it's not worth it. Without checking, I assume only a minor part of options have a real default value, instead they are often flags, or the default is some form of "emtpy"/not given e.g. in the case of :caption:
, or the default is a behavior that needs a sentence of description, and does not have a simple value to list in a :default:
option.
So, I'm fine with writing out "Default is ..." for the cases that make sense.
Co-authored-by: Adam Turner <[email protected]>
Convert to standard syntax conventions we use for directive options.