Peter Van Dyken - 2024-02-14

Just to expand on this, this problem occurs when unicode control character (e.g. x00-x19) (plus a few other characters including the backslash \) occurs at the site of a line break and the next line has at least one whitespace character (" "). For instance, the following values would trigger the issue:

1234567890000\x060 0
1234567890000\x030000 000000

This does not:

1234567890000\x0600

As far as I can tell, the problem occurs in emitter.py:1436-1447, code handling whether a escaped line break should be inserted. I can't say I understand what exactly that code is attempting to accomplish, but it seems to me that at least an escape \ should be used if no space " " immediately follows the line break site.

 

Last edit: Peter Van Dyken 2024-02-14