Skip to content

Commit 0e4d84b

Browse files
authored
Merge pull request #2252 from wilzbach/undefined-correct-html
Use correct HTML for BEST_PRACTICE merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2 parents c090fda + 8f7e0f8 commit 0e4d84b

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

dlang.org.ddoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ ACRONYM = <acronym title="$+">$1</acronym> ($+)
44
ASSIGNEXPRESSION = $(GLINK2 expression, AssignExpression)
55
_=
66

7-
$(COMMENT While not part of the spec, best practices offers advice on how to best use a feature)
8-
BEST_PRACTICE= $(P $(B Best Practices:) $0)
9-
107
BIGOH = $(SPANC bigoh, &Omicron;($(D $0)))
118
BLOCKQUOTE = $(T blockquote, $(P $0))
129
BLOCKQUOTE_BY = $(BLOCKQUOTE $+ $(T cite, $1))
@@ -207,8 +204,7 @@ HTMLTAG3V=<$1 $2>$(TAIL $+)
207204
HYPHENATE=hyphenate
208205
_=
209206

210-
$(COMMENT Identifies implementation-defined behavior in the spec)
211-
IMPLEMENTATION_DEFINED=$(P $(B Implementation Defined): $0)
207+
212208
ISEXPRESSION=$(GLINK2 expression, IsExpression)
213209
_=
214210

@@ -544,8 +540,6 @@ TROW=$(TR $(TDX $1, $+))
544540
TROW_EXPLANATORY=<td colspan="10">$0</td>
545541
_=
546542

547-
$(COMMENT Identifies undefined-defined behavior in the spec)
548-
UNDEFINED_BEHAVIOR=$(P $(B Undefined Behavior): $0)
549543
UNDERSCORE=_
550544
UNDERSCORE_PREFIXED=_$1$(UNDERSCORE_PREFIXED $+)
551545
UNDERSCORE_PREFIXED_SKIP=$(UNDERSCORE_PREFIXED $+)

ebook.ddoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,10 @@ HEADERNAV_TOC=
6868
HEADERNAV_ITEM=
6969
HEADERNAV_SUBITEMS=
7070
_=
71+
72+
73+
_= specification boxes
74+
BEST_PRACTICE= $(P $(B Best Practices:) $0)
75+
IMPLEMENTATION_DEFINED=$(P $(B Implementation Defined): $0)
76+
UNDEFINED_BEHAVIOR=$(P $(B Undefined Behavior): $0)
77+
_=

spec/latex.ddoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ AMP=\&
88
_=
99

1010
B=\textbf{$0}
11+
BEST_PRACTICE= $(P $(B Best Practices:) $0)
1112
BIG=\large{$0}
1213
BLACK={\color{black}$0}
1314
BLUE={\color{blue}$0}
@@ -117,6 +118,7 @@ HTMLTAG3=
117118
_=
118119

119120
I=\textit{$0}
121+
IMPLEMENTATION_DEFINED=$(P $(B Implementation Defined): $0)
120122
_=
121123

122124
LAYOUT=
@@ -361,6 +363,8 @@ $0
361363
\end{itemize}
362364
_=
363365

366+
367+
UNDEFINED_BEHAVIOR=$(P $(B Undefined Behavior): $0)
364368
UNDERSCORE=\_
365369
_=
366370

spec/spec.ddoc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ ROOT = ..
33
SEARCHDEFAULT_SPEC = selected
44
DDOC_BLANKLINE = $(DIVC blankline)
55

6+
7+
_ = special specification boxes
8+
$(COMMENT While not part of the spec, best practices offers advice on how to best use a feature)
9+
BEST_PRACTICE= $(DIVC spec-boxes best-practice, $(B Best Practices:) $0)
10+
11+
$(COMMENT Identifies implementation-defined behavior in the spec)
12+
IMPLEMENTATION_DEFINED=$(DIVC spec-boxes implementation-defined, $(B Implementation Defined): $0)
13+
14+
$(COMMENT Identifies undefined-defined behavior in the spec)
15+
UNDEFINED_BEHAVIOR=$(DIVC spec-boxes undefined-behavior, $(B Undefined Behavior): $0)
16+
_ =
17+
618
BODY_PREFIX =
719
$(T style,
820
body { counter-reset: h1 $(CHAPTER); counter-increment: h1 -1; }
@@ -26,11 +38,11 @@ $(T style,
2638
counter-increment: h4;
2739
content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) " ";
2840
}
29-
p::before {
41+
p::before, .spec-boxes::before {
3042
counter-increment: p;
3143
content: counter(p) ". ";
3244
}
33-
h1::before, h2::before, h3::before, h4::before, p::before
45+
h1::before, h2::before, h3::before, h4::before, p::before, .spec-boxes::before
3446
{
3547
color: #999;
3648
font-size: 80%;

0 commit comments

Comments
 (0)