1
0
Fork 0
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:
Étienne Fildadut 2023-12-29 19:19:15 +01:00
parent 5dd971ff8f
commit d42b900388
91 changed files with 428 additions and 424 deletions

View file

@ -20,6 +20,10 @@ return string {
source:increment(-1)
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
end
}