Gecko:Line Breaking

From MozillaWiki
Jump to navigation Jump to search

Line Breaking

Bug 255990 introduced a lot of major changes to our line breaking behavior, some of which we don't really want. We should do some planning and investigation to see what we can do to allow those new breaks where we want them, and disallow them where we don't. First, let's get a clear idea of what breaks we want and what breaks we don't want. Feel free to add to the following three lists.

Unless otherwise specified, assume each listed string is surrounded by spaces.

Breaks We Don't Want

List breaks we don't want here.

  • c/o
  • /etc
  • s/he
  • 2/23/98
  • cm/sec
  • --
  • ---
  • index.html
  • colo(u)r
  • guest(s)
  • "foo..."
  • \3,000 (BACKSLASH is used as yen sign and won sign.)
  • \n
  • \x0A
  • 100%
  •  
  • AT&T
  • 1-5
  • 2007-08-02
  • -ed
  • Init()
  • sin(x)
  • smileys: :) ;) :-) :P :D :-D :^) :-/ =^_^= \^_^/ ^-^ ^^;; o_O -__-;;
  • !?
  • ?!
  • ???
  • !!!
  • $20
  • 20$
  • US$20
  • 20$US
  • 100°
  • °C

Breaks We Want

List breaks we want here.

  • somereallylongword/someotherreallylongword
  • %82%B1%82%EA%82%CD%93%FA%96%8C%EA%82%C5%82%B7
  • foo=bar&foo=bar&foo=bar&foo=bar
  • foo=bar;foo=bar;foo=bar;foo=bar
  • c:\foo\bar\foo\bar\foo\bar
  • \\foo\bar\foo\bar\foo\bar
  • 2-bromo-4,4-dichlorophenol

Breaks We're Not Sure About

List breaks we're not sure about here.