jbovlaste icon indicating copy to clipboard operation
jbovlaste copied to clipboard

can't make a link with a URL longer than 75 chars

Open durka opened this issue 9 years ago • 2 comments

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.

durka avatar Jun 30 '15 14:06 durka

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:

  1. Add a class="pinka" attribute to the <p> tags that contain comments.
  2. Add a style rule p.pinka { width: 75ch; word-wrap: break-word } to the page.

durka avatar Jun 30 '15 15:06 durka

Yeah, hard-wrapping the text is a bad decision IMO. Plus, you get to avoid storing HTML in the backend.

tsani avatar Jul 04 '15 18:07 tsani