You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Newlines in deprecation warning are handled strangely - double newlines are stripped completely #149732
It seems like we're doing some kinda odd stuff, only partially interpreting these strings as markdown (for example, they're styled with white-space: pre-wrap.
Yeah, strangely, this seems to be intentional behavior, we are explicitly removing the Tag::Paragraph events, but that seems very ill advised. I believe this is actually working around a quirk in write_html_fmt where it adds \n between <p> elements, but there are better ways of doing that.
Activity
lolbinarycat commentedon Dec 7, 2025
rust/src/librustdoc/html/markdown.rs
Line 1463 in 1d6c526
It seems like we're doing some kinda odd stuff, only partially interpreting these strings as markdown (for example, they're styled with
white-space: pre-wrap.lolbinarycat commentedon Dec 7, 2025
Yeah, strangely, this seems to be intentional behavior, we are explicitly removing the
Tag::Paragraphevents, but that seems very ill advised. I believe this is actually working around a quirk inwrite_html_fmtwhere it adds\nbetween<p>elements, but there are better ways of doing that.lolbinarycat commentedon Apr 6, 2026
fixed by #149931