flourishlib / flourish-classes

The class files for Flourish
http://flourishlib.com
182 stars 78 forks source link

Change fHTML::makeLinks() so it ads `<wbr>` tags to link text #146

Open wbond opened 12 years ago

wbond commented 12 years ago

Ticket #757 by @emohamed

It'll be nice to change fHTML::makeLinks() so it adds tags on every 60 characters or so in the link text. This will allow browsers to properly display long URLs on several lines.

I understand that the $link_text_length argument is intended to resolve this issue, however, it causes another issue: direct copy & paste of the message will lead to incomplete message.

Comment by @MrDamien

That would be entirely layout specific…

Probably a better solution is to use CSS instead: http://www.w3.org/TR/css3-text/#hyphens http://www.w3.org/TR/css3-text/#word-break