Comment 34 for bug 2627

Revision history for this message
Martin Pool (mbp) wrote :

Paul, afaik,

MailWrapper as the name suggests is only relevant to mail.

BugTextView is a quirky pre-api machine-oriented view and also not relevant.

You should start from lib/lp/bugs/templates/bugtask-index.pt which shows

        <tal:description
            define="global description context/bug/description/fmt:obfuscate-email/fmt:text-to-html" />

so it's coming from the bug.description field and then having two filters applied, of which the important one is text-to-html, which is defined in stringformatter.py.

I suspect just using a <pre> will have unacceptable knock-on effects such as page widening. But, by all means play with it and see if you can get something better.

I think to actually deploy this it ought to be behind a feature flag <https://dev.launchpad.net/FeatureFlags> so that it can be gradually rolled out across different browsers.