Hello!, when a field contains new lines, using addnote url-scheme to create a note removes the new lines and replaces them with single space.
example of field value:
Swift string output:
.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) to be able to add it as a fld query param in Anki’s addnote url-scheme:
Checking if newlines are still there after transforming back to regular string by using “.removingPercentEncoding”:
▿ Optional<String> - some : "これは\n例です"
How it looks in the created note (new lines replaced by single space):
Should I encode the string in a different way? I am not sure if there is anything on my side I can do to get new lines in the fields.
Any help is welcomed! Thank you.