TracError messages with markup are not enclosed in a p.message when rendered
|Reported by:||Ryan J Ollos||Owned by:||Ryan J Ollos|
While trying to raise an exception in which the message contains a link, I found that the message was is not wrapped in a
p.message. There's at least one existing case in the codebase where the message contains markup: tags/trac-1.0.1/trac/web/auth.py@:145-153#L130. By forcing the conditional to True, it can be seen to render as:
The behavior is readily explained by the rendering logic, and [5388#file4] indicates it was implemented that way intentionally to avoid nested paragraphs. I propose a minor change to incrementally improve on this: log:rjollos.git:t11368.