Skip to content

Commit 48a73d1

Browse files
committed
Change note style
The "NOTE" callouts were causing asciidoctor to create a horizontal scrollbar in the tables. Change the style to match the way non-normative notes are displayed in the C++ specification. As a side effect, this also fixes the horizontal scrollbar problem.
1 parent a4d29bc commit 48a73d1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_kernel_compiler.asciidoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:encoding: utf-8
1111
:lang: en
1212
:dpcpp: pass:[DPC++]
13+
:endnote: —{nbsp}end{nbsp}note
1314

1415
// Set the default source code type in this document to C++,
1516
// for syntax highlighting purposes. This is needed because
@@ -197,9 +198,7 @@ _Throws:_
197198
* An `exception` with the `errc::invalid` error code if the source language
198199
`lang` is not supported by any device contained by the context `ctxt`.
199200

200-
[NOTE]
201-
====
202-
Calling this function does not attempt to compile the source code.
201+
[_Note:_ Calling this function does not attempt to compile the source code.
203202
As a result, syntactic errors in the source code string are not diagnosed by
204203
this function.
205204

@@ -208,7 +207,7 @@ language `lang`.
208207
However, the `build` function fails unless _all_ of its devices support `lang`.
209208
Therefore, applications should take care to omit devices that do not support
210209
`lang` when calling `build`.
211-
====
210+
_{endnote}_]
212211

213212
a|
214213
[frame=all,grid=none]
@@ -272,13 +271,11 @@ _Throws:_
272271
This string is intended for human consumption, and the format may not be
273272
stable across implementations of this extension.
274273

275-
[NOTE]
276-
====
277-
An uncaught `errc::build` exception may result in some or all of the source
278-
code used to create the kernel bundle being printed to the terminal.
274+
[_Note:_ An uncaught `errc::build` exception may result in some or all of the
275+
source code used to create the kernel bundle being printed to the terminal.
279276
In situations where this is undesirable, developers must ensure that the
280277
exception is caught and handled appropriately.
281-
====
278+
_{endnote}_]
282279

283280
Overload (2):
284281

0 commit comments

Comments
 (0)