catch / python-api

Catch Notes Python Intergration API
http://www.catch.com
20 stars 6 forks source link

wordwrap fails #1

Open nieboe opened 14 years ago

nieboe commented 14 years ago

"\" is escaped to "\", thus posted notes cannot contain newlines.

Example: posted text content: "title\r\nnew line\nanother line" response:

    {
     "notes":[
     {
    "summary":"title\\r\\nnew line\\nanother line",
    "user":{

    "user_name":"XXXXXXXXXX",
    "id":XXXXXXXXXX},
    "created_at":"2010-04-29T12:34:56.789Z",
    "mode":"private",
    "modified_at":"2010-04-29T12:34:56.789Z",
    "reminder_at":null,
    "id":XXXXXXXXX,
    "text":"title\\r\\nnew line\\nanother line",
    "tags":[ ],
    "source":"3banana",
    "location":null,
    "source_url":"https://snaptic.com/",
    "children":0}
    ]
    }
htormey commented 14 years ago

Looking into this now. Thanks.