Jump to content

Krolock

+Premium Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Krolock

  1. If you define a line break in lua like

    local nr = 1
    local message = "Row ".. nr ..[[
    Row ]] .. (nr+1)
    

    in an external lua file and build the project, the resulting _cartrigde.lua contains the following code:

    local nr = 1
    local message = "Row ".. nr ..[[Row ]] .. (nr+1)
    

    The line break only disappears if no charactor or only whitespace are written behind the square brackets "[["

     

    If you define code like

    local nr = 1
    local message = "Row ".. nr ..[[ Bla
    Row ]] .. (nr+1)
    

    the line break won't disappear

     

    It does not matter if you write the code in an external file or in urwigo directly. If you activate the "Inline lua 'require'" checkbox, the line break will disappear.

     

    see the given example as attachement

     

    Krolock

    LineBreakTest.zip

×
×
  • Create New...