Re: Importing sticky ntoes



Hi,

> > Can you provide the sample note that does not import?
> 
> Well, this is a sample stickynotes_applet file which will not import:
> 
> -----8<----------8<----------8<----------8<----------8<----------8<-----
> <?xml version="1.0"?>
> <stickynotes version="2.30.0">
>   <note title="A" x="1" y="25" w="252" h="315">Pisa &lt;
> Bologna:</note>
> </stickynotes>
> -----8<----------8<----------8<----------8<----------8<----------8<-----

&lt; is the '<' character, all sticky notes with '<' and '>' characters
are not imported at present.


> but will neiter raise any error. It will import regularly if I remove
> the "&lt;" bit.
> 
> The following is an example which will raise the errors
> "(140522793548160) ERROR: load_addins_for_note - trying to load addins
> when they are already loaded
> (140522793548160) ERROR: error_handler - XML error EntityRef: expecting
> ';'" (and not import):
> 
> -----8<----------8<----------8<----------8<----------8<----------8<-----
> <?xml version="1.0"?>
> <stickynotes version="2.30.0">
>   <note title="regali" x="1" y="25" w="289" h="340">example
> http://www.example.com&amp;products_id=219
> </note>
> </stickynotes>
> -----8<----------8<----------8<----------8<----------8<----------8<-----

This note contains &amp; - the '&' character. At present this is not
checked before importing, that's why the error occurrs.


> and finally, the following will raise the errors
> "(140400014412160) ERROR: load_addins_for_note - trying to load addins
> when they are already loaded
> (140400014412160) ERROR: error_handler - XML error xmlParseEntityRef: no
> name" and import an empty (but with the right title) note:
> -----8<----------8<----------8<----------8<----------8<----------8<-----
> <?xml version="1.0"?>
> <stickynotes version="2.30.0">
>   <note title="regali" x="1" y="25" w="289" h="340">example&amp;
> </note>
> </stickynotes>
> -----8<----------8<----------8<----------8<----------8<----------8<-----

Same here - the '&amp;'.


This is a bug. Gnote does allow special characters in notes, but
currently this is not the case for sticky note importer.
Thanks for reporting this.

-- 
Aurimas

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]