removed whitespace changes

This commit is contained in:
andy
2018-10-01 14:56:09 +01:00
parent 9bd86d9fd5
commit fd79045053
4 changed files with 4 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ struct Lexer {
init(templateName: String? = nil, templateString: String) {
self.templateName = templateName
self.templateString = templateString
self.lines = templateString.components(separatedBy: .newlines).enumerated().compactMap {
guard !$0.element.isEmpty else { return nil }
return (content: $0.element, number: UInt($0.offset + 1), templateString.range(of: $0.element)!)