Skip to content

Commit abf777b

Browse files
committed
[css-gcpm] fixing more whitespace
1 parent 6f8548a commit abf777b

2 files changed

Lines changed: 39 additions & 22 deletions

File tree

css-gcpm/Overview.html

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ <h4 class="heading settled heading" data-level=1.1.2 id=using-named-strings><spa
318318

319319
<div class=example>
320320
CSS:
321+
321322
<pre>@page {
322323
size: 15cm 10cm;
323324
margin: 1.5cm;
@@ -386,13 +387,14 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
386387

387388
<div class=example>
388389

389-
<p>HTML:
390+
<p>HTML:</p>
391+
390392
<pre>&lt;p class="rh"&gt;&lt;i&gt;Miranda v. Arizona&lt;/i&gt; in Context&lt;/p&gt;
391393
&lt;h2&gt;&lt;i&gt;Miranda v. Arizona&lt;/i&gt; in Context&lt;/h2&gt;
394+
</pre>
392395

396+
<p>CSS:</p>
393397

394-
395-
<p>CSS:
396398
<pre> @top-center {
397399
content: element(heading);
398400
}
@@ -404,8 +406,7 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
404406
p.rh::before {
405407
content: counter(page) ' / ';
406408
}
407-
408-
409+
</pre>
409410

410411

411412

@@ -415,7 +416,7 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
415416
<p><img alt="running header using running elements" src=running-element-gcpm_Page_1.jpg width=480>
416417
</p><figcaption>Running element in page margin box</figcaption>
417418
</figure>
418-
</pre></pre></div><p></p>
419+
</div><p></p>
419420

420421

421422

@@ -735,6 +736,7 @@ <h3 class="heading settled heading" data-level=3.2 id=document-sequence-selector
735736

736737
<div class=example>
737738
CSS:
739+
738740
<pre>
739741
div { page: A }
740742
child { page: B }
@@ -744,6 +746,7 @@ <h3 class="heading settled heading" data-level=3.2 id=document-sequence-selector
744746
<figcaption>A page may be part of several page groups.</figcaption>
745747
</figure>
746748
Note that page 5 can be selected in three ways:
749+
747750
<pre>
748751
@page :nth(5 of A) /* will select 5th page of every &lt;div&gt; */
749752
@page :nth(1 of B) /* will select first page of every &lt;child&gt; */
@@ -921,25 +924,27 @@ <h3 class="heading settled heading" data-level=5.1 id=target-counter><span class
921924
</pre>
922925
<div class=example>
923926
HTML:
927+
924928
<pre>
925929
…which will be discussed on page &lt;a href="#chapter4_sec2"&gt;000&lt;/a&gt;.
926930
</pre>
927-
<p>CSS:
931+
<p>CSS:</p>
932+
928933
<pre>
929934
a::after { content: target-counter(attr(href url), page) }
930-
931-
935+
</pre>
932936
<p>Result:
933937
<pre>
934938
…which will be discussed on page 137.
935939

936940

937-
</pre></pre></div>
941+
</pre></div>
938942

939943
<div class=example>
940944
Page numbers in tables of contents can be generated automatically:
941945

942-
<p>HTML:
946+
<p>HTML:</p>
947+
943948
<pre>
944949
&lt;nav&gt;
945950
&lt;ol&gt;
@@ -948,25 +953,24 @@ <h3 class="heading settled heading" data-level=5.1 id=target-counter><span class
948953
&lt;li class="bodymatter"&gt;&lt;a href="#chap_01"&gt;Chapter One&lt;/a&gt;&lt;/li&gt;
949954
&lt;/ol&gt;
950955
&lt;/nav&gt;
956+
</pre>
951957

958+
<p>CSS:</p>
952959

953-
954-
<p>CSS:
955960
<pre>
956961
.frontmatter a::after { content: leader('.') target-counter(attr(href url), page, lower-roman) }
957962
.bodymatter a::after { content: leader('.') target-counter(attr(href url), page, decimal) }
963+
</pre>
958964

965+
<p>Result:</p>
959966

960-
961-
<p>Result:
962967
<pre>
963968
Preface.............vii
964969
Introduction.........xi
965970
Chapter One...........1
971+
</pre>
966972

967-
968-
969-
</pre></pre></pre></div>
973+
</div>
970974

971975

972976

@@ -1043,19 +1047,20 @@ <h3 class="heading settled heading" data-level=6.2 id=bookmark-label><span class
10431047

10441048
<div class=example>
10451049
HTML:
1050+
10461051
<pre>
10471052
&lt;h1&gt;Loomings&lt;/h1&gt;
10481053
</pre>
1049-
<p>CSS:
1054+
<p>CSS:</p>
1055+
10501056
<pre>
10511057
h1 {
10521058
bookmark-label: content(text);
10531059
bookmark-level: 1;
10541060
}
1055-
1056-
1061+
</pre>
10571062
<p>The bookmark label will be “Loomings”.
1058-
</pre></div><p></p>
1063+
</div><p></p>
10591064

10601065
<h3 class="heading settled heading" data-level=6.3 id=bookmark-state><span class=secno>6.3 </span><span class=content>
10611066
bookmark-state

css-gcpm/Overview.src.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ <h4 id="using-named-strings">
165165

166166
<div class="example">
167167
CSS:
168+
168169
<pre>
169170
@page {
170171
size: 15cm 10cm;
@@ -253,12 +254,14 @@ <h4 id="alternative-syntax-running">Alternative Proposal from Bert Bos</h4>
253254
<div class="example">
254255

255256
HTML:
257+
256258
<pre>
257259
&lt;p class="rh">&lt;i>Miranda v. Arizona&lt;/i> in Context&lt;/p>
258260
&lt;h2>&lt;i>Miranda v. Arizona&lt;/i> in Context&lt;/h2>
259261
</pre>
260262

261263
CSS:
264+
262265
<pre>
263266
@top-center {
264267
content: element(heading);
@@ -718,6 +721,7 @@ <h3 id="document-sequence-selectors">
718721

719722
<div class="example">
720723
CSS:
724+
721725
<pre>
722726
div { page: A }
723727
child { page: B }
@@ -727,6 +731,7 @@ <h3 id="document-sequence-selectors">
727731
<figcaption>A page may be part of several page groups.</figcaption>
728732
</figure>
729733
Note that page 5 can be selected in three ways:
734+
730735
<pre>
731736
@page :nth(5 of A) /* will select 5th page of every &lt;div> */
732737
@page :nth(1 of B) /* will select first page of every &lt;child> */
@@ -909,10 +914,12 @@ <h3 id="target-counter">
909914
</pre>
910915
<div class="example">
911916
HTML:
917+
912918
<pre>
913919
…which will be discussed on page &lt;a href="#chapter4_sec2">000&lt;/a>.
914920
</pre>
915921
CSS:
922+
916923
<pre>
917924
a::after { content: target-counter(attr(href url), page) }
918925
</pre>
@@ -926,6 +933,7 @@ <h3 id="target-counter">
926933
Page numbers in tables of contents can be generated automatically:
927934

928935
HTML:
936+
929937
<pre>
930938
&lt;nav>
931939
&lt;ol>
@@ -937,12 +945,14 @@ <h3 id="target-counter">
937945
</pre>
938946

939947
CSS:
948+
940949
<pre>
941950
.frontmatter a::after { content: leader('.') target-counter(attr(href url), page, lower-roman) }
942951
.bodymatter a::after { content: leader('.') target-counter(attr(href url), page, decimal) }
943952
</pre>
944953

945954
Result:
955+
946956
<pre>
947957
Preface.............vii
948958
Introduction.........xi
@@ -1045,10 +1055,12 @@ <h3 id="bookmark-label">
10451055

10461056
<div class="example">
10471057
HTML:
1058+
10481059
<pre>
10491060
&lt;h1>Loomings&lt;/h1>
10501061
</pre>
10511062
CSS:
1063+
10521064
<pre>
10531065
h1 {
10541066
bookmark-label: content(text);

0 commit comments

Comments
 (0)