jbovlaste
jbovlaste copied to clipboard
can't make a link with a URL longer than 75 chars
As seen here. The word wrapping happens when the comment is posted, but the wiki formatting pass is later (during display), so links with long URLs have random <br/>
s inserted in them.
IMO, the real bug is hard wrapping the text at post time. That's a 100% display decision and we can do it HTML/CSS on the comment pages. This would be done by:
- Add a
class="pinka"
attribute to the<p>
tags that contain comments. - Add a style rule
p.pinka { width: 75ch; word-wrap: break-word }
to the page.
Yeah, hard-wrapping the text is a bad decision IMO. Plus, you get to avoid storing HTML in the backend.