-
-
Couldn't load subscription status.
- Fork 69
[Bug] Quotes in text very buggy. #90
Description
Describe the bug
If a text in a column contains quotes ("), it will be inconsistent depending on how those quotes are done.
To Reproduce
Input column Text: "Quoth"
In YAML: Text: "Quoth"
Back to table, it'll display Text: Quoth (note without the quotes).
Input column Text: "Quoth" said the raven.
In YAML: Text: "Quoth" said the raven. <-- Note it's invalid YAML now.
Back to table, it'll display Text: Nothing, text fails to show now.
Try to change text now to anything else, like Test.
In YAML: Text: "Quoth" said the raven. <-- It failed to change while YAML is invalid. Have to change it manually to something valid.
Expected behavior
I'd like it if the column can display that the key is found but that the value is invalid so I get warned that I have to fix things. Otherwise it'll just show an empty column that I think I can type something in but it won't save due to invalid YAML.
I've noticed it with the quotes (") so far. The backtick is also an iffy one which can produce invalid YAML, messing things up. As a fix, I think as soon as there is a special character used that can mess up things, have the text completely surrounded by "" and escape out the " inside the text if any is present.
Desktop (please complete the following information):
- OS: Windows 10