-
Notifications
You must be signed in to change notification settings - Fork 126
Issues numbers added after rst preformatted blocks breaks rendering #614
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
Comments
Are the release notes supposed to contain multi-line / block markup ? The list item is automatically prefixed to the content and the content of the next fragment is processed by towncrier. Would it work if the extra newlines are added to the |
I just hit this as well in python-trio/trio#3010 |
I think that content of the news fragment from this PR python-trio/trio#3010 is abusing the release notes format. The release notes should not be used as documentation and should not include examples. They can contain links to API documentation or the a separate documentation page that contain example. The newsfragment are not news articles. They are release notes items. They are just some notes / mentions about the high-level changes. I am not saying that this should not be fixed. I can understand that someone might want to have "rich-format" release notes. But I think that in that use case we should add something like With that option, towncrier only passes the newsfragment content to Jinja2 |
As long as it doesn't break backward compatibility and it continues to make simple things, simple, any fix for this issue should be ok. |
Yeah I'm not gonna defend that changelog entry as being a pinnacle of greatness, and is not unlikely I'll change it before it gets merged. But unless towncrier wants to explicitly be opinionated about multi-line entries I agree that we can introduce a small & simple fix that quietly gets out of the way of breaking rendering. |
I don't want Happy to review and merge a fix for this. Thanks |
From #608:
For example, a file
newsfragments/608.feature.rst
:will produce:
Which renders as:

The solution is probably to Prepend
\n\n
to the issue number in this case (a single newline will result in(WARNING/2) Literal block ends without a blank line; unexpected unindent.
)Maybe it's easier always putting the issue number in a separate paragraph if any new lines exist in the fragment content?
The text was updated successfully, but these errors were encountered: