Skip to content

Commit

Permalink
Fixed newline bug on Android. Version 2.55
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Krasnocka committed Jan 25, 2024
1 parent d698424 commit 57c4ff2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LocsUtil/LocsGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LocsGenerator: NSObject {
var xlsxReader: XlsxReader
let langRowIndex = 0 // Language definitions - row index in XSLSX document
let keyColumnId = "A" // Key definitions - column index in XSLSX document
let version = "2.54"
let version = "2.55"

override init() {
// csvReader = CsvReader()
Expand Down Expand Up @@ -181,6 +181,9 @@ class LocsGenerator: NSObject {
// Escape any trailing percentage symbol that is followed by a space with unicode character to avoid breaking based on following characters
output = output.replacingOccurrences(of: "% ", with: "\\u0025 ")

// Replace newlines with \n string
output = output.replacingOccurrences(of: "\n", with: "\\n")

var i = 1 // i will be the increasing parameter number throughout the string

// Convert bare %s string value
Expand Down

0 comments on commit 57c4ff2

Please sign in to comment.