-
Notifications
You must be signed in to change notification settings - Fork 24
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
Protect against indented multi-line descriptions #21
Protect against indented multi-line descriptions #21
Conversation
One left in sopel.cli.config, which is better fixed by a small patch to sphinxcontrib.autoprogram if the patch is accepted. (See sphinx-contrib/autoprogram#21)
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.
Sorry for my late response, and thank you for the contribution! Could you write a changelog for this into doc/changelog.rst?
Done. Tried to match style of previous entries, and added a new extlinks role for PRs while I was in there. 😸 |
Oh, I just saw the merge conflict. Would you like me to rebase, merge from master, or do nothing and let you resolve it yourself? |
Decided to clean up the conflict by rebasing. Looks like CI has been failing on |
Sphinx will happily e.g. turn the following into a <blockquote> when outputting HTML, because the leading indentation makes it look like one. ```python list_parser = subparsers.add_parser( 'list', help="List available configurations from config directory", description=""" List available configurations from config directory with the extension ".cfg". Use option ``--config-dir`` to use a specific config directory. """) ``` Python's `inspect.cleandoc()` function was meant to handle this case, making sure that any excess indentation is stripped away.
@langston-barrett Should be good to go. I happened to be in between meetings! Maybe I should try to recruit you to help move one of my own projects to Actions 😏 |
@dgw Excellent! Thank you! |
One left in sopel.cli.config, which is better fixed by a small patch to sphinxcontrib.autoprogram if the patch is accepted. (See sphinx-contrib/autoprogram#21)
Sphinx will happily e.g. turn the following into a
<blockquote>
when outputting HTML, because the leading indentation makes it look like one.Python's
inspect.cleandoc()
function was meant to handle this case, making sure that any excess indentation is stripped away.@Exirel, this will fix the documentation rendering issue I pinged you about on IRC earlier.