Skip to content

Commit 57fdf53

Browse files
committed
Slightly simplifies Line Feed Transformation Rules to merge EAW and Hangul into single condition
1 parent d067425 commit 57fdf53

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

css3-text/Overview.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 30 March 2011</h2>
8989
<dt>This version:
9090

9191
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
92-
2011/03/30 03:24:34 $ (CVS $Revision$)</a> <!--
92+
2011/03/30 03:37:38 $ (CVS $Revision$)</a> <!--
9393
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110330/">http://www.w3.org/TR/2011/WD-css3-text-20110330/</a></dd>
9494
-->
9595

@@ -1106,13 +1106,10 @@ <h4 id=line-break-transform><span class=secno>4.3.2. </span> Line Feed
11061106
is the zero width space character (U+200B), then the line feed is
11071107
removed.
11081108

1109-
<li>Otherwise, if a character on either side of the line feed is Hangul,
1110-
then the line feed is converted to a space (U+0020).
1111-
11121109
<li>Otherwise, if the East Asian Width property <a href="#UAX11"
11131110
rel=biblioentry>[UAX11]<!--{{!UAX11}}--></a> of both the character before
1114-
and after the line feed is F, W, or H (not A), then the line feed is
1115-
removed.
1111+
and after the line feed is F, W, or H (not A), and neither side is
1112+
Hangul, then the line feed is removed.
11161113

11171114
<li>Otherwise, if &lsquo;<a href="#text-autospace"><code
11181115
class=property>text-autospace</code></a>&rsquo; property is set to add

css3-text/Overview.src.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,9 @@ <h4 id="line-break-transform">
706706
<li>If the character immediately before or immediately after the line
707707
feed is the zero width space character (U+200B), then the line feed
708708
is removed.
709-
<li>Otherwise, if a character on either side of the line feed is
710-
Hangul, then the line feed is converted to a space (U+0020).
711709
<li>Otherwise, if the East Asian Width property [[!UAX11]] of both
712710
the character before and after the line feed is F, W, or H (not A),
711+
and neither side is Hangul,
713712
then the line feed is removed.
714713
<li>Otherwise, if 'text-autospace' property is set to add extra spaces
715714
for the combination of the character before the line feed and after,

0 commit comments

Comments
 (0)