Skip to content

Commit 3ce9725

Browse files
authored
add the unbreakable attribute to generated source blocks (#1032)
1 parent 768595c commit 3ce9725

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/docgenerator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def writeInclude(self, directory, basename, contents):
218218
index_terms.append(basename)
219219
write('indexterm:[{}]'.format(','.join(index_terms)), file=fp)
220220

221-
write('[source,opencl]', file=fp)
221+
write('[source%unbreakable,opencl]', file=fp)
222222
write('----', file=fp)
223223
write(contents, file=fp)
224224
write('----', file=fp)
@@ -233,7 +233,7 @@ def writeInclude(self, directory, basename, contents):
233233
# Asciidoc anchor
234234
write(self.genOpts.conventions.warning_comment, file=fp)
235235
write('// Include this no-xref version without cross reference id for multiple includes of same file', file=fp)
236-
write('[source,opencl]', file=fp)
236+
write('[source,%unbreakable,opencl]', file=fp)
237237
write('----', file=fp)
238238
write(contents, file=fp)
239239
write('----', file=fp)

0 commit comments

Comments
 (0)