diff --git a/Sources/Lingua/Infrastructure/SwiftLocalizeGenerator/Generator/LocalizedSwiftCodeGenerator.swift b/Sources/Lingua/Infrastructure/SwiftLocalizeGenerator/Generator/LocalizedSwiftCodeGenerator.swift index fee1034..901bcb0 100644 --- a/Sources/Lingua/Infrastructure/SwiftLocalizeGenerator/Generator/LocalizedSwiftCodeGenerator.swift +++ b/Sources/Lingua/Infrastructure/SwiftLocalizeGenerator/Generator/LocalizedSwiftCodeGenerator.swift @@ -46,8 +46,6 @@ private extension LocalizedSwiftCodeGenerator { private extension String { func commented() -> String { - components(separatedBy: "\n") - .map { "/// \($0)" } - .joined(separator: "\n\t\t") + "/// " + replacingOccurrences(of: "\n", with: "\\n") } }