Describe the bug
PR #402 made the incorrect assumption that newlines were the reason simple-bar's JSON error was occuring.
The real reason is that a string such as "test \ haha" is invalid JSON. backslashes need to be escaped. ("test \\ haha" would be valid JSON.)
As a matter of fact, I put a backslash in the title of this issue to show the problem. :wink:
To Reproduce
In general, having any window title containing a backslash is enough to trigger the issue.
The issue should immediately be visible on your computer, right now, due to this issue's title.
Expected behavior
Backslashes are properly escaped in the JSON payload; simple-bar continues working.
Screenshots
If applicable, add screenshots to help explain your problem.
Information (please complete the following information):
Describe the bug PR #402 made the incorrect assumption that newlines were the reason simple-bar's JSON error was occuring. The real reason is that a string such as
"test \ haha"
is invalid JSON. backslashes need to be escaped. ("test \\ haha"
would be valid JSON.) As a matter of fact, I put a backslash in the title of this issue to show the problem. :wink:To Reproduce
In general, having any window title containing a backslash is enough to trigger the issue. The issue should immediately be visible on your computer, right now, due to this issue's title.
Expected behavior Backslashes are properly escaped in the JSON payload; simple-bar continues working.
Screenshots If applicable, add screenshots to help explain your problem.
Information (please complete the following information):