munshkr / flok

Web-based P2P collaborative editor for live coding sounds and images
https://flok.cc
GNU General Public License v3.0
255 stars 39 forks source link

FoxDot indent error #36

Closed mathigatti closed 4 years ago

mathigatti commented 4 years ago

Hi, I get errors when I try to execute multiline commands in foxdot because of indentation issues.

It looks like something like this:

def a_function():
    p1 >> pluck()

is converted into this:

def a_function():
p1 >> pluck()

There might be some issue trim in the lines? Maybe here?

munshkr commented 4 years ago

Yes, it's probably there! Actually this problem is also present on Tidal.

munshkr commented 4 years ago

Maybe it should trim only at the end of the line... Let's remove the trim() call altogether.

munshkr commented 4 years ago

Fixed on commits 94dab26a9622f9601d791df61f05ae32eff6eeb4 and e0580ac7875d9493e1b72bfa4ca28d690f0c59d8