[Slackbuilds-users] Suggestion: monospace font for README

Ryan P.C. McQuen ryan.q at linux.com
Sun Nov 6 23:14:21 UTC 2016


On Sun, Nov 6, 2016 at 2:48 PM Jeremy Hansen jebrhansen+SBo at gmail.com
<http://mailto:jebrhansen+SBo@gmail.com> wrote:

You could also just use some CSS and have browsers wrap the text. Seems
> much easier than editing a ton of READMES...
>
> pre {
> white-space: pre-wrap;       /* css-3 */
> white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
> white-space: -pre-wrap;      /* Opera 4-6 */
> white-space: -o-pre-wrap;    /* Opera 7 */
> word-wrap: break-word;       /* Internet Explorer 5.5+ */
> }
>
> http://stackoverflow.com/questions/248011/how-do-i-wrap-text-in-a-pre-tag
>
Any reasonably modern browser will not need a prefix, meaning you could
simplify the CSS to:

pre {
  white-space: pre-wrap;}

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#Browser_compatibility
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20161106/041e8749/attachment.html>


More information about the SlackBuilds-users mailing list