Fix lua intf {}\ escape issues
This commit is contained in:
parent
35891f0f0c
commit
6d657a86cf
@ -556,7 +556,12 @@ function wordwrapify_string(line)
|
|||||||
if nextChar == currentChar then
|
if nextChar == currentChar then
|
||||||
return newstr
|
return newstr
|
||||||
end
|
end
|
||||||
|
charToTest = str:sub(currentChar,nextChar-1)
|
||||||
|
if charToTest ~= "\\" and charToTest ~= "{" and charToTest ~= "}" then
|
||||||
newstr = newstr .. WORDWRAPIFY_MAGICWORD .. str:sub(currentChar,nextChar-1)
|
newstr = newstr .. WORDWRAPIFY_MAGICWORD .. str:sub(currentChar,nextChar-1)
|
||||||
|
else
|
||||||
|
newstr = newstr .. str:sub(currentChar,nextChar-1)
|
||||||
|
end
|
||||||
currentChar = nextChar
|
currentChar = nextChar
|
||||||
until currentChar > maxChars
|
until currentChar > maxChars
|
||||||
return newstr
|
return newstr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user