rpp icon indicating copy to clipboard operation
rpp copied to clipboard

Allows empty lines in RPP files

Open qubitstream opened this issue 6 years ago • 2 comments

  • previously, the parse failed if it encountered an empty line due to an IndexError
  • some extensions apparently can add empty lines
  • an example of such a file is in tests/data/with_empty_lines.RPP

qubitstream avatar Jul 14 '19 22:07 qubitstream

Hello @qubitstream, I'm sorry for the late notice.

Does the extension work OK if you remove the empty line and load the project in REAPER?

Perlence avatar Oct 31 '20 13:10 Perlence

The way it's implemented in this PR makes it unable to restore those empty lines when writing the file.

Instead, starts_with_quote and starts_with_pipe (scanner.py:68-75) should just return False if the string is empty, similarly to how the startswith method work in python.

kokounet avatar Oct 02 '23 09:10 kokounet