lojban / jbovlaste

http://jbovlaste.lojban.org
31 stars 11 forks source link

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

Open durka opened 9 years ago

durka commented 9 years ago

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 commented 9 years ago

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.
tsani commented 9 years ago

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