mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Text litteral: strip leading and closing space if present
This commit is contained in:
parent
5dd971ff8f
commit
d42b900388
91 changed files with 428 additions and 424 deletions
|
|
@ -20,6 +20,10 @@ return string {
|
||||||
source:increment(-1)
|
source:increment(-1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- remove terminal space
|
||||||
|
local last = interpolation.list[#interpolation.list]
|
||||||
|
if ast.String:is(last) then last.string = last.string:gsub("%s$", "") end
|
||||||
|
|
||||||
return Translatable:new(interpolation):set_source(start_source), rem
|
return Translatable:new(interpolation):set_source(start_source), rem
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue