diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 3221c66b..b4f23fbb 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -1,7 +1,6 @@ name: Danger on: - push: pull_request: branches: - main diff --git a/Source/API/PDFGenerator+Generation.swift b/Source/API/PDFGenerator+Generation.swift index 2b70e702..74d2a585 100644 --- a/Source/API/PDFGenerator+Generation.swift +++ b/Source/API/PDFGenerator+Generation.swift @@ -452,7 +452,7 @@ public extension PDFGenerator { elements.append((styleIndex, textObj)) } } - let list = PDFList(indentations: styles.enumerated().map { (pre: CGFloat($0.offset + 1) * 10, past: 10) }) + let list = PDFList(indentations: styles.indices.map { (pre: CGFloat($0 + 1) * 10, past: 10) }) var stack = Stack() for (index, element) in elements { let item = PDFListItem(symbol: symbol, content: element.simpleText?.text) diff --git a/Source/API/Pagination/PDFPaginationStyle.swift b/Source/API/Pagination/PDFPaginationStyle.swift index 4605ff09..8ab0c2d8 100644 --- a/Source/API/Pagination/PDFPaginationStyle.swift +++ b/Source/API/Pagination/PDFPaginationStyle.swift @@ -10,7 +10,8 @@ import Foundation /** * Use predefined pagination styles or create a custom one, using `.CustomNumberFormat` or `.CustomClosure`. * - * Enums using a template String as parameter will replace the first instance of `%@` with the index and the second one with the total amount of pages. + * Enums using a template String as parameter will replace the first instance of `%@` with the index + * and the second one with the total amount of pages. */ public enum PDFPaginationStyle { /**