Skip to content

Commit 30af331

Browse files
removed some unnecessary whitespace
1 parent 313bd89 commit 30af331

File tree

89 files changed

+445
-426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+445
-426
lines changed

Sources/CSS/CSSFunction.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Evan Anderson on 2/13/25.
66
//
77

8-
public struct CSSFunction : Hashable {
8+
public struct CSSFunction: Hashable {
99
public var value:String
1010
public var type:CSSFunctionType
1111

Sources/CSS/CSSFunctionType.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77

88
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions
9-
public enum CSSFunctionType : String {
9+
public enum CSSFunctionType: String {
1010
case abs
1111
case acos
1212
case anchor
@@ -112,7 +112,7 @@ public enum CSSFunctionType : String {
112112
case xywh
113113

114114
@inlinable
115-
public var key : String {
115+
public var key: String {
116116
switch self {
117117
case .anchorSize: return "anchor-size"
118118
case .calcSize: return "calc-size"

Sources/CSS/CSSStyle.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import HTMLKitUtilities
99

10-
public enum CSSStyle : HTMLInitializable {
10+
public enum CSSStyle: HTMLInitializable {
1111
//case accentColor(AccentColor?)
1212
//case align(Align?)
1313
case all(All?)
@@ -132,7 +132,7 @@ public enum CSSStyle : HTMLInitializable {
132132

133133
// MARK: Key
134134
@inlinable
135-
public var key : String {
135+
public var key: String {
136136
switch self {
137137
//case .accentColor: return "accentColor"
138138
//case .align: return "align"
@@ -260,14 +260,14 @@ public enum CSSStyle : HTMLInitializable {
260260

261261
// MARK: HTML value is voidable
262262
@inlinable
263-
public var htmlValueIsVoidable : Bool { false }
263+
public var htmlValueIsVoidable: Bool { false }
264264
}
265265

266266
// MARK: HTML value
267267
extension CSSStyle {
268268
@inlinable
269269
public func htmlValue(encoding: HTMLEncoding, forMacro: Bool) -> String? {
270-
func get<T : HTMLInitializable>(_ value: T?) -> String? {
270+
func get<T: HTMLInitializable>(_ value: T?) -> String? {
271271
guard let v = value?.htmlValue(encoding: encoding, forMacro: forMacro) else { return nil }
272272
return key + ":" + v
273273
}

Sources/CSS/CSSUnit.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import HTMLKitUtilities
1313
import SwiftSyntax
1414
#endif
1515

16-
public enum CSSUnit : HTMLInitializable { // https://www.w3schools.com/cssref/css_units.php
16+
public enum CSSUnit: HTMLInitializable { // https://www.w3schools.com/cssref/css_units.php
1717
// absolute
1818
case centimeters(_ value: Float?)
1919
case millimeters(_ value: Float?)
@@ -47,7 +47,7 @@ public enum CSSUnit : HTMLInitializable { // https://www.w3schools.com/cssref/cs
4747
case percent(_ value: Float?)
4848

4949
@inlinable
50-
public var key : String {
50+
public var key: String {
5151
switch self {
5252
case .centimeters: return "centimeters"
5353
case .millimeters: return "millimeters"
@@ -100,10 +100,10 @@ public enum CSSUnit : HTMLInitializable { // https://www.w3schools.com/cssref/cs
100100
}
101101

102102
@inlinable
103-
public var htmlValueIsVoidable : Bool { false }
103+
public var htmlValueIsVoidable: Bool { false }
104104

105105
@inlinable
106-
public var suffix : String {
106+
public var suffix: String {
107107
switch self {
108108
case .centimeters: return "cm"
109109
case .millimeters: return "mm"
@@ -127,7 +127,7 @@ public enum CSSUnit : HTMLInitializable { // https://www.w3schools.com/cssref/cs
127127

128128
#if canImport(SwiftSyntax)
129129
// MARK: HTMLParsable
130-
extension CSSUnit : HTMLParsable {
130+
extension CSSUnit: HTMLParsable {
131131
public init?(context: HTMLExpansionContext) {
132132
func float() -> Float? {
133133
guard let expression:ExprSyntax = context.expression,

Sources/CSS/styles/AccentColor.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum AccentColor : HTMLInitializable {
11+
public enum AccentColor: HTMLInitializable {
1212
case auto
1313
case color(Color?)
1414
case inherit
@@ -18,7 +18,7 @@ extension CSSStyle {
1818
case unset
1919

2020
@inlinable
21-
public var key : String {
21+
public var key: String {
2222
switch self {
2323
case .auto: return "auto"
2424
case .color: return "color"
@@ -44,6 +44,6 @@ extension CSSStyle {
4444
}
4545

4646
@inlinable
47-
public var htmlValueIsVoidable : Bool { false }
47+
public var htmlValueIsVoidable: Bool { false }
4848
}
4949
}

Sources/CSS/styles/Align.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import HTMLKitUtilities
99

1010
/*
1111
extension CSSStyle {
12-
public enum Align : HTMLInitializable {
12+
public enum Align: HTMLInitializable {
1313
case content(Content?)
1414
case items(Items?)
1515
case `self`(AlignSelf?)
@@ -18,7 +18,7 @@ extension CSSStyle {
1818

1919
// MARK: Align Content
2020
extension CSSStyle.Align {
21-
public enum Content : String, HTMLParsable {
21+
public enum Content: String, HTMLParsable {
2222
case baseline
2323
case end
2424
case firstBaseline
@@ -61,7 +61,7 @@ extension CSSStyle.Align {
6161

6262
// MARK: Align Items
6363
extension CSSStyle.Align {
64-
public enum Items : String, HTMLParsable {
64+
public enum Items: String, HTMLParsable {
6565
case anchorCenter
6666
case baseline
6767
case center
@@ -104,7 +104,7 @@ extension CSSStyle.Align {
104104

105105
// MARK: Align Self
106106
extension CSSStyle.Align {
107-
public enum `Self` : String, HTMLParsable {
107+
public enum `Self`: String, HTMLParsable {
108108
case anchorCenter
109109
case auto
110110
case baseline

Sources/CSS/styles/All.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum All : String, HTMLParsable {
11+
public enum All: String, HTMLParsable {
1212
case initial
1313
case inherit
1414
case unset

Sources/CSS/styles/Animation.swift

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import HTMLKitUtilities
99

1010
/*
1111
extension CSSStyle {
12-
public enum Animation : HTMLInitializable {
12+
public enum Animation: HTMLInitializable {
1313
case delay(CSSStyle.Duration?)
1414
case direction(Direction?)
1515
case duration(CSSStyle.Duration?)
@@ -25,7 +25,7 @@ extension CSSStyle {
2525

2626
// MARK: Direction
2727
extension CSSStyle.Animation {
28-
public enum Direction : HTMLInitializable {
28+
public enum Direction: HTMLInitializable {
2929
case alternate
3030
case alternateReverse
3131
case inherit
@@ -53,7 +53,7 @@ extension CSSStyle.Animation {
5353
}
5454
}
5555

56-
public var key : String { "" }
56+
public var key: String { "" }
5757

5858
@inlinable
5959
public func htmlValue(encoding: HTMLEncoding, forMacro: Bool) -> String? {
@@ -72,13 +72,13 @@ extension CSSStyle.Animation {
7272
}
7373

7474
@inlinable
75-
public var htmlValueIsVoidable : Bool { false }
75+
public var htmlValueIsVoidable: Bool { false }
7676
}
7777
}
7878

7979
// MARK: Fill Mode
8080
extension CSSStyle.Animation {
81-
public enum FillMode : HTMLInitializable {
81+
public enum FillMode: HTMLInitializable {
8282
case backwards
8383
case both
8484
case forwards
@@ -106,7 +106,7 @@ extension CSSStyle.Animation {
106106
}
107107
}
108108

109-
public var key : String { "" }
109+
public var key: String { "" }
110110

111111
@inlinable
112112
public func htmlValue(encoding: HTMLEncoding, forMacro: Bool) -> String? {
@@ -125,13 +125,13 @@ extension CSSStyle.Animation {
125125
}
126126

127127
@inlinable
128-
public var htmlValueIsVoidable : Bool { false }
128+
public var htmlValueIsVoidable: Bool { false }
129129
}
130130
}
131131

132132
// MARK: Play State
133133
extension CSSStyle.Animation {
134-
public enum PlayState : HTMLInitializable {
134+
public enum PlayState: HTMLInitializable {
135135
case inherit
136136
case initial
137137
indirect case multiple([PlayState])
@@ -155,7 +155,7 @@ extension CSSStyle.Animation {
155155
}
156156
}
157157

158-
public var key : String { "" }
158+
public var key: String { "" }
159159

160160
@inlinable
161161
public func htmlValue(encoding: HTMLEncoding, forMacro: Bool) -> String? {
@@ -172,6 +172,6 @@ extension CSSStyle.Animation {
172172
}
173173

174174
@inlinable
175-
public var htmlValueIsVoidable : Bool { false }
175+
public var htmlValueIsVoidable: Bool { false }
176176
}
177177
}*/

Sources/CSS/styles/Appearance.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum Appearance : String, HTMLParsable {
11+
public enum Appearance: String, HTMLParsable {
1212
case auto
1313
case button
1414
case checkbox

Sources/CSS/styles/BackfaceVisibility.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum BackfaceVisibility : String, HTMLParsable {
11+
public enum BackfaceVisibility: String, HTMLParsable {
1212
case hidden
1313
case inherit
1414
case initial

Sources/CSS/styles/Background.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/*
99
extension CSSStyle {
10-
public enum Background : HTMLInitializable {
10+
public enum Background: HTMLInitializable {
1111
case attachment
1212
case blendMode
1313
case clip

Sources/CSS/styles/Border.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import HTMLKitUtilities
99

1010
/*
1111
extension CSSStyle {
12-
public enum Border : HTMLInitializable {
12+
public enum Border: HTMLInitializable {
1313
case block(Block?)
1414
case bottom(Bottom?)
1515
case collapse
@@ -23,7 +23,7 @@ extension CSSStyle {
2323

2424
// MARK: Block
2525
extension CSSStyle.Border {
26-
public enum Block : HTMLInitializable {
26+
public enum Block: HTMLInitializable {
2727
case color(CSSStyle.Color?)
2828
case end
2929
case endColor(CSSStyle.Color?)
@@ -42,7 +42,7 @@ extension CSSStyle.Border {
4242

4343
// MARK: Bottom
4444
extension CSSStyle.Border {
45-
public enum Bottom : HTMLInitializable {
45+
public enum Bottom: HTMLInitializable {
4646
case color(CSSStyle.Color?)
4747
case leftRadius
4848
case rightRadius
@@ -55,15 +55,15 @@ extension CSSStyle.Border {
5555

5656
// MARK: End
5757
extension CSSStyle.Border {
58-
public enum End : HTMLInitializable {
58+
public enum End: HTMLInitializable {
5959
case endRadius
6060
case startRadius
6161
}
6262
}
6363

6464
// MARK: Image
6565
extension CSSStyle.Border {
66-
public enum Image : HTMLInitializable {
66+
public enum Image: HTMLInitializable {
6767
case outset
6868
case `repeat`
6969
case slice
@@ -76,7 +76,7 @@ extension CSSStyle.Border {
7676

7777
// MARK: Inline
7878
extension CSSStyle.Border {
79-
public enum Inline : HTMLInitializable {
79+
public enum Inline: HTMLInitializable {
8080
case color(CSSStyle.Color?)
8181
case end
8282
case endColor(CSSStyle.Color?)

Sources/CSS/styles/Box.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum Box : String, HTMLParsable {
11+
public enum Box: String, HTMLParsable {
1212
case decorationBreak
1313
case reflect
1414
case shadow

Sources/CSS/styles/Break.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum Break : String, HTMLParsable {
11+
public enum Break: String, HTMLParsable {
1212
case after
1313
case before
1414
case inside

Sources/CSS/styles/CaptionSide.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum CaptionSide : String, HTMLParsable {
11+
public enum CaptionSide: String, HTMLParsable {
1212
case bottom
1313
case inherit
1414
case initial

Sources/CSS/styles/Clear.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import HTMLKitUtilities
99

1010
extension CSSStyle {
11-
public enum Clear : String, HTMLParsable {
11+
public enum Clear: String, HTMLParsable {
1212
case both
1313
case inherit
1414
case initial

0 commit comments

Comments
 (0)