Open diogomatsubara opened 11 years ago
I'm running the trunk branch with some modifications that add logging to the provider code (I was debugging issue #328 as it happened to me a few times).
Once I saved a new note, I start seeing this error:
2013-06-27 13:12:28,863 - everpad-provider - DEBUG - Note(contentHash=None, updated=None, created=None, deleted=None, contentLength=None, title='D\xc3\xadvidas', notebookGuid=u'3d8b5d8c-82ae-4ceb-857d-ea34ede102a1', content='<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">\n\n \n \n \n \n \n test\n \n\nd\n', tagNames=None, updateSequenceNum=None, tagGuids=[], active=None, attributes=None, guid=u'098e8665-291d-446b-a24e-7a130127d395', resources=[]) 2013-06-27 13:12:28,863 - everpad-provider - DEBUG - <everpad.provider.models.Note object at 0x7f6b6c107510> 2013-06-27 13:12:28,863 - everpad-provider - DEBUG - EDAMUserException(errorCode=11, parameter='Content is not allowed in trailing section.')
And noticed there's a trailing 'd' character in the enml template used by _prepare_content()
I'm running the trunk branch with some modifications that add logging to the provider code (I was debugging issue #328 as it happened to me a few times).
Once I saved a new note, I start seeing this error:
2013-06-27 13:12:28,863 - everpad-provider - DEBUG - Note(contentHash=None, updated=None, created=None, deleted=None, contentLength=None, title='D\xc3\xadvidas', notebookGuid=u'3d8b5d8c-82ae-4ceb-857d-ea34ede102a1', content='<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">\n\n \n \n \n test\n \n \nd\n', tagNames=None, updateSequenceNum=None, tagGuids=[], active=None, attributes=None, guid=u'098e8665-291d-446b-a24e-7a130127d395', resources=[])
2013-06-27 13:12:28,863 - everpad-provider - DEBUG - <everpad.provider.models.Note object at 0x7f6b6c107510>
2013-06-27 13:12:28,863 - everpad-provider - DEBUG - EDAMUserException(errorCode=11, parameter='Content is not allowed in trailing section.')
\n
\nAnd noticed there's a trailing 'd' character in the enml template used by _prepare_content()