Skip to content

Commit 5d82a34

Browse files
committed
[css-text-3] Clean up <pre> indentation, because Bikeshed chokes on comments and they're no longer necessary since it strips indentation.
1 parent e7a9ec9 commit 5d82a34

File tree

1 file changed

+56
-53
lines changed

1 file changed

+56
-53
lines changed

css-text-3/Overview.bs

Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,12 @@ Line Breaking Details</h3>
950950
<p>As another example, Korean has two styles of line-breaking:
951951
between any two Korean syllables (''word-break: normal'')
952952
or, like English, mainly at spaces (''word-break: keep-all'').
953-
<pre>각 줄의 마지막에 한글이 올 때 줄 나눔 기 /* break between syllables */
954-
<!-- -->준을 “글자” 또는 “어절” 단위로 한다.</pre>
955-
<pre>각 줄의 마지막에 한글이 올 때 줄 나눔 /* break only at spaces */
956-
<!-- -->기준을 “글자” 또는 “어절” 단위로 한다.</pre>
953+
<pre>
954+
각 줄의 마지막에 한글이 올 때 줄 나눔 <strong>
955+
준을</strong> “글자” 또는 “어절” 단위로 한다.</pre>
956+
<pre>
957+
각 줄의 마지막에 한글이 올 때 줄 나눔
958+
<strong>기준을</strong> “글자” 또는 “어절” 단위로 한다.</pre>
957959
</div>
958960

959961
<p class="note">
@@ -1800,8 +1802,9 @@ Word Spacing: the 'word-spacing' property</h3>
18001802
<p>The following example will make all the spaces between words in Arabic
18011803
be rendered as zero-width, and double the width of each space in English:
18021804

1803-
<pre>:lang(ar) { word-spacing: -100%; }
1804-
<!-- -->:lang(en) { word-spacing: 100%; }</pre>
1805+
<pre>
1806+
:lang(ar) { word-spacing: -100%; }
1807+
:lang(en) { word-spacing: 100%; }</pre>
18051808

18061809
<p>The following example will <em>add</em> half the the width of the
18071810
&ldquo;0&rdquo; glyph to word spacing character [[CSS-VALUES-3]]:
@@ -1870,9 +1873,9 @@ Word Spacing: the 'word-spacing' property</h3>
18701873
<p>Because letter-spacing is not applied at the beginning or end of a line,
18711874
text always fits flush with the edge of the block.
18721875
<pre>
1873-
<!-- -->p { letter-spacing: 1em; }
1876+
p { letter-spacing: 1em; }
18741877

1875-
<!-- -->&lt;p>abc&lt;/p></pre>
1878+
&lt;p>abc&lt;/p></pre>
18761879

18771880
<p class="ls-ex good ls-fixed-width color-box" style="text-align: left">a&emsp;b&emsp;c</p>
18781881
<p class="ls-ex good ls-fixed-width color-box" style="text-align: right">a&emsp;b&emsp;c</p>
@@ -1893,10 +1896,10 @@ Word Spacing: the 'word-spacing' property</h3>
18931896
between characters completely contained within the element for which it is specified:
18941897

18951898
<pre>
1896-
<!-- -->p { letter-spacing: 1em; }
1897-
<!-- -->span { letter-spacing: 2em; }
1899+
p { letter-spacing: 1em; }
1900+
span { letter-spacing: 2em; }
18981901

1899-
<!-- -->&lt;p>a&lt;span>bb&lt;/span>c&lt;/p></pre>
1902+
&lt;p>a&lt;span>bb&lt;/span>c&lt;/p></pre>
19001903

19011904
<p class="ls-ex">a&emsp;<span class="color-box">b&emsp;&emsp;b</span>&emsp;c</p>
19021905

@@ -1905,20 +1908,20 @@ Word Spacing: the 'word-spacing' property</h3>
19051908
has no effect on the rendered result:
19061909

19071910
<pre>
1908-
<!-- -->p { letter-spacing: 1em; }
1909-
<!-- -->span { letter-spacing: 2em; }
1911+
p { letter-spacing: 1em; }
1912+
span { letter-spacing: 2em; }
19101913

1911-
<!-- -->&lt;p>a&lt;span>b&lt;/span>c&lt;/p></pre>
1914+
&lt;p>a&lt;span>b&lt;/span>c&lt;/p></pre>
19121915

19131916
<p class="ls-ex">a&emsp;<span class="color-box">b</span>&emsp;c</p>
19141917

19151918
<p>An inline box only includes
19161919
letter spacing between characters completely contained within that element:
19171920

19181921
<pre>
1919-
<!-- -->p { letter-spacing: 1em; }
1922+
p { letter-spacing: 1em; }
19201923

1921-
<!-- -->&lt;p>a&lt;span>bb&lt;/span>c&lt;/p></pre>
1924+
&lt;p>a&lt;span>bb&lt;/span>c&lt;/p></pre>
19221925

19231926
<p class="ls-ex good">a&emsp;<span class="color-box">b&emsp;b</span>&emsp;c</p>
19241927

@@ -1930,12 +1933,12 @@ Word Spacing: the 'word-spacing' property</h3>
19301933
so the letter spacing applied to the inner span below has no effect,
19311934
since after reordering the "c" doesn't end up next to "&#x5d0;":
19321935
<pre>
1933-
<!-- -->p { letter-spacing: 1em; }
1934-
<!-- -->span { letter-spacing: 2em; }
1936+
p { letter-spacing: 1em; }
1937+
span { letter-spacing: 2em; }
19351938

1936-
<!-- -->&lt;!-- abc followed by Hebrew letters alef (&#x5d0;), bet (&#x5d1;) and gimel (&#x5d2;) -->
1937-
<!-- -->&lt;!-- Reordering will display these in reverse order. --&gt;
1938-
<!-- --><bdo dir=ltr>&lt;p>ab&lt;span>c&#x5d0;&lt;/span>&#x5d1;&#x5d2;&lt;/p></bdo></pre>
1939+
&lt;!-- abc followed by Hebrew letters alef (&#x5d0;), bet (&#x5d1;) and gimel (&#x5d2;) -->
1940+
&lt;!-- Reordering will display these in reverse order. --&gt;
1941+
<bdo dir=ltr>&lt;p>ab&lt;span>c&#x5d0;&lt;/span>&#x5d1;&#x5d2;&lt;/p></bdo></pre>
19391942

19401943
<p class="ls-ex">a&emsp;b</span>&emsp;<span class="color-box">c</span>&emsp;<span class="color-box">&#x5d0;</span>&emsp;&#x5d1;&emsp;&#x5d2;</p>
19411944
</div>
@@ -2249,23 +2252,22 @@ Cursive Scripts</h4>
22492252
width="202" height="51"
22502253
alt="hanging-punctuation: allow-end">
22512254
</div>
2252-
<pre><code class="css"><!--
2253-
-->p {
2254-
<!-- --> text-align: justify;
2255-
<!-- --> hanging-punctuation: allow-end;
2256-
<!-- -->}
2257-
<!----></code></pre>
2255+
<pre class="css">
2256+
p {
2257+
text-align: justify;
2258+
hanging-punctuation: allow-end;
2259+
}</pre>
22582260
<div class="sidefigure">
22592261
<img src="images/hanging-punctuation-force-end.png"
22602262
width="202" height="51"
22612263
alt="hanging-punctuation: force-end">
22622264
</div>
2263-
<pre><code class="css"><!--
2264-
-->p {
2265-
<!-- --> text-align: justify;
2266-
<!-- --> hanging-punctuation: force-end;
2267-
<!-- -->}
2268-
<!----></code></pre>
2265+
<pre class="css">
2266+
p {
2267+
text-align: justify;
2268+
hanging-punctuation: force-end;
2269+
}
2270+
</pre>
22692271
</div>
22702272
<p>The punctuation at the end of the first line for ''allow-end''
22712273
does not hang, because it fits without hanging.
@@ -2296,14 +2298,15 @@ Bidirectionality and Line Boxes</h3>
22962298
<p>In the following example, assuming the <code>&lt;block&gt;</code>
22972299
is a preformatted block (''display: block; white-space: pre'') inheriting
22982300
''text-align: start'', every other line is right-aligned:</p>
2299-
<pre>&lt;block style="unicode-bidi: plaintext"&gt;
2300-
<!-- --> Latin
2301-
<!-- --> &#x0648;·&#x06A9;&#x0645;&#x06CC;
2302-
<!-- --> Latin
2303-
<!-- --> &#x0648;·&#x06A9;&#x0645;&#x06CC;
2304-
<!-- --> Latin
2305-
<!-- --> &#x0648;·&#x06A9;&#x0645;&#x06CC;
2306-
<!-- -->&lt;/block&gt;</pre>
2301+
<pre>
2302+
&lt;block style="unicode-bidi: plaintext"&gt;
2303+
Latin
2304+
&#x0648;·&#x06A9;&#x0645;&#x06CC;
2305+
Latin
2306+
&#x0648;·&#x06A9;&#x0645;&#x06CC;
2307+
Latin
2308+
&#x0648;·&#x06A9;&#x0645;&#x06CC;
2309+
&lt;/block&gt;</pre>
23072310
</div>
23082311

23092312
<p class="note">Note that the inline base direction determined here
@@ -2315,9 +2318,9 @@ Bidirectionality and Line Boxes</h3>
23152318
<div class="example">
23162319
<p>In the following example:
23172320
<pre>
2318-
<!-- -->&lt;para style="display: block; direction: rtl; unicode-bidi:plaintext">
2319-
<!-- -->&lt;quote style="unicode-bidi:plaintext">שלום!&lt;/quote>", he said.
2320-
<!-- -->&lt;/para&gt;</pre>
2321+
&lt;para style="display: block; direction: rtl; unicode-bidi:plaintext">
2322+
&lt;quote style="unicode-bidi:plaintext">שלום!&lt;/quote>", he said.
2323+
&lt;/para&gt;</pre>
23212324

23222325
<p>The result should be a left-aligned line looking like this:
23232326
<pre>"!&#1513;&#1500;&#1493;&#1501;", he said.</pre>
@@ -2341,13 +2344,13 @@ Bidirectionality and Line Boxes</h3>
23412344

23422345
<div class="example">
23432346
<pre>
2344-
<!-- -->&lt;fieldset style="direction: rtl">
2345-
<!-- -->&lt;textarea style="unicode-bidi:plaintext">
2346-
<!-- -->
2347-
<!-- -->Hello!
2348-
<!-- -->
2349-
<!-- -->&lt;/textarea>
2350-
<!-- -->&lt;/fieldset></pre>
2347+
&lt;fieldset style="direction: rtl">
2348+
&lt;textarea style="unicode-bidi:plaintext">
2349+
2350+
Hello!
2351+
2352+
&lt;/textarea>
2353+
&lt;/fieldset></pre>
23512354

23522355
<p>As expected, the "Hello!" should be displayed LTR
23532356
(i.e. with the exclamation mark on the right end,
@@ -2410,8 +2413,8 @@ Appendix C: Default UA Stylesheet</h2>
24102413

24112414
<div class="example">
24122415
<pre>
2413-
<!-- -->/* make list items and option elements align together */
2414-
<!-- -->li, option { text-align: match-parent; }</pre>
2416+
/* make list items and option elements align together */
2417+
li, option { text-align: match-parent; }</pre>
24152418
</div>
24162419
<p class="feedback issue">If you find any issues, recommendations to add, or corrections,
24172420
please send the information to <a href="mailto:www-style@w3.org">www-style@w3.org</a>

0 commit comments

Comments
 (0)