Skip to content

Commit 48ed2d8

Browse files
author
Jesse Haigh
committed
copyToClipboard should be false when nocopy is present
1 parent 4740cae commit 48ed2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDocC/Model/Rendering/RenderContentCompiler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct RenderContentCompiler: MarkupVisitor {
7474
syntax: options.lang ?? bundle.info.defaultCodeListingLanguage,
7575
code: codeBlock.code.splitByNewlines,
7676
metadata: nil,
77-
copyToClipboard: options.tokens.contains(.nocopy)
77+
copyToClipboard: !options.tokens.contains(.nocopy)
7878
)
7979

8080
return [RenderBlockContent.codeListing(listing)]

0 commit comments

Comments
 (0)