Skip to content

Commit abd86ab

Browse files
author
Sanel Zsivics
committed
Rename class to AcknowledgmentsPlistToHTML
1 parent 8b22857 commit abd86ab

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
enum Plist2HTML {
3+
enum AcknowledgmentsPlistToHTML {
44

55
private static let blankLine = "<br>"
66
private static let ackKey = "PreferenceSpecifiers"
@@ -13,7 +13,7 @@ enum Plist2HTML {
1313
static func transformPlistFile(from url: URL) -> String {
1414
guard
1515
let plistDict = NSDictionary(contentsOfFile: url.path),
16-
let acknowledgmentsMultiList = plistDict[Plist2HTML.ackKey] as? NSArray else {
16+
let acknowledgmentsMultiList = plistDict[AcknowledgmentsPlistToHTML.ackKey] as? NSArray else {
1717
return ""
1818
}
1919

@@ -25,22 +25,22 @@ enum Plist2HTML {
2525
return
2626
}
2727

28-
if let _title = ackDict[Plist2HTML.titleKey] as? String {
29-
htmlString += Plist2HTML.header(with: _title)
28+
if let _title = ackDict[AcknowledgmentsPlistToHTML.titleKey] as? String {
29+
htmlString += AcknowledgmentsPlistToHTML.header(with: _title)
3030
}
3131

32-
if let _license = ackDict[Plist2HTML.licenseKey] as? String {
33-
htmlString += Plist2HTML.subheader(with: _license)
32+
if let _license = ackDict[AcknowledgmentsPlistToHTML.licenseKey] as? String {
33+
htmlString += AcknowledgmentsPlistToHTML.subheader(with: _license)
3434
}
3535

36-
if let _footerText = ackDict[Plist2HTML.footerKey] as? String {
37-
htmlString += Plist2HTML.paragraph(with: _footerText.replacingOccurrences(of: "\n", with: Plist2HTML.blankLine))
36+
if let _footerText = ackDict[AcknowledgmentsPlistToHTML.footerKey] as? String {
37+
htmlString += AcknowledgmentsPlistToHTML.paragraph(with: _footerText.replacingOccurrences(of: "\n", with: AcknowledgmentsPlistToHTML.blankLine))
3838
}
3939

40-
htmlString += Plist2HTML.blankLine
40+
htmlString += AcknowledgmentsPlistToHTML.blankLine
4141
}
4242

43-
return Plist2HTML.body(with: htmlString)
43+
return AcknowledgmentsPlistToHTML.body(with: htmlString)
4444
}
4545

4646
// MARK: - Helpers

0 commit comments

Comments
 (0)