helper: trimming whitespace from strings

[?]
Aug 23, 2022, 10:06 PM
6K5PFF6XBFTM6CXUVVFIH4CQMCMPHTND3ICDMRMNOME5BUBF27NQC

Dependencies

  • [2] TGHAJBES use line cache for drawings as well
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] PLKNHYZ4 extract a function

Change contents

  • edit in text.lua at line 992
    [2.1777]
    [5.438]
    end
    function trim(s)
    return s:gsub('^%s+', ''):gsub('%s+$', '')
    end
    function ltrim(s)
    return s:gsub('^%s+', '')
    end
    function rtrim(s)
    return s:gsub('%s+$', '')