DescriptionImprove browser description formatting
I saw antdillon's branch to improve the formatting and really liked the idea (https://code.launchpad.net/~ya-bo-ng/juju-gui/linkify-charm-descriptions/+merge/192852). However, I wanted to improve the testing and the XSS behavior. Trying to accomplish the second of those involved quite a bit of changes from his original design, but there's still a regex in there or two.
To QA, look at the mediawiki summary tab. Note that the change log and description now are better formmatted, and have links, and break only for long stuff. mongodb's description shows the pre-line formatting off, and liferay's description shows why truncating at 300 characters was problematic--a url might be cut in half. I thought of some approaches to try and make that work, but I thought that removing the 300 character limit looked better anyway. cassandra's change log is another one to look at: the pre-line works well, I think, and there are a few links to look at in the "earlier changes" section when you expand the change log.
https://code.launchpad.net/~gary/juju-gui/linkify-charm-descriptions/+merge/194048
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 2
Patch Set 2 : Improve browser description formatting #
Total comments: 2
Patch Set 3 : Improve browser description formatting #Patch Set 4 : Improve browser description formatting #
MessagesTotal messages: 9
|