- From: Fuqiao Xue via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 May 2020 03:29:41 +0000
- To: public-css-archive@w3.org
FWIW, I just tried the hard line wrap functionality in some editors and here is the result. The text is: ``` This is long line to be wrapped with a hyphenated word to illustrate the word-hyphenation issue. ``` ----- In Vim with [textwidth](https://vimhelp.org/options.txt.html#%27textwidth%27)=80, [gq](https://vimhelp.org/change.txt.html#formatting) produces the following result: ``` This is long line to be wrapped with a hyphenated word to illustrate the word-hyphenation issue. ``` That is, Vim won't break on hyphens. ([Relevant code](https://github.com/vim/vim/blob/11abd095210fc84e5dcee87b9baed86061caefe4/src/textformat.c#L738)) ----- In Sublime Text 2 and 3 with [Sublime Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus), there is a `WrapPlus.break_on_hyphens` setting, and it's default is `false` ([it was true before 2018](https://github.com/ehuss/Sublime-Wrap-Plus/commit/fd9b4037fa9011917b3a226d599090f4802afc2d), though), and the result (with `wrap_width=80`) is: ``` This is long line to be wrapped with a hyphenated word to illustrate the word-hyphenation issue. ``` That is, no break on hyphens. ----- In Visual Studio Code with [Rewrap](https://marketplace.visualstudio.com/items?itemName=stkb.rewrap) (with `rewrap.wrappingColumn=80`), it won't break on hyphens: ``` This is long line to be wrapped with a hyphenated word to illustrate the word-hyphenation issue. ``` ----- In Emacs with `(setq-default fill-column 80)`, `fill-paragraph` won't break on hyphens as well: ``` This is long line to be wrapped with a hyphenated word to illustrate the word-hyphenation issue. ``` ([Relevant code](https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/textmodes/fill.el?id=3a8a231810d3380889bda5034f4d9e995d82b0b7#n865)) -- GitHub Notification of comment by xfq Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5017#issuecomment-627723228 using your GitHub account
Received on Wednesday, 13 May 2020 03:29:42 UTC