News for hackers. Stuff that matters.
Re:Pwn.college by jonhohle on Friday November 06, 2026 @11:35AM (#50394631)
Is there a difference between the rules TeX uses and HTML renderers?
Re:Pwn.college by deathanatos on Friday November 06, 2026 @12:03PM (#50395042)
AIUI, yes, most browsers use greedy line breaking by default. E.g., FF does not do Knuth style[1].

This led to the CSS `text-wrap` property, and `text-wrap: pretty`[2], but pretty is not supported in FF yet, and the value `pretty` doesn't mandate Knuth's algorithm.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=630181

[2]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P...