Skip to content

Commit 7977adc

Browse files
committed
init copyToClipboard based on feature flag presence
1 parent 00049e3 commit 7977adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDocC/Model/Rendering/Content/RenderBlockContent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public enum RenderBlockContent: Equatable {
139139
}
140140

141141
/// Make a new `CodeListing` with the given data.
142-
public init(syntax: String?, code: [String], metadata: RenderContentMetadata?, copyToClipboard: Bool = true) {
142+
public init(syntax: String?, code: [String], metadata: RenderContentMetadata?, copyToClipboard: Bool = FeatureFlags.current.isExperimentalCodeBlockAnnotationsEnabled) {
143143
self.syntax = syntax
144144
self.code = code
145145
self.metadata = metadata

0 commit comments

Comments
 (0)