I have an iphone app that can read and write freemind-format files. The Notes are giving me some trouble, though. Does Freemind automatically stick in a newline and two spaces before each line of note text, and a newline after? It seems to be part of the formatting of the XML file, but I am trying to work out how to decode it.
For example, for a note with a line like "Note 1", libxml2 retrieves the text from the <p> node as "\n Note1\n". I don't know why the extra spaces that must precede the <\p> to get it to line up aren't there.
Anyone know about this? When importing notes, should I just discard the first \n and two spaces? When exporting them should I insert that stuff?
Thanks
Bob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have an iphone app that can read and write freemind-format files. The Notes are giving me some trouble, though. Does Freemind automatically stick in a newline and two spaces before each line of note text, and a newline after? It seems to be part of the formatting of the XML file, but I am trying to work out how to decode it.
For example, for a note with a line like "Note 1", libxml2 retrieves the text from the <p> node as "\n Note1\n". I don't know why the extra spaces that must precede the <\p> to get it to line up aren't there.
Anyone know about this? When importing notes, should I just discard the first \n and two spaces? When exporting them should I insert that stuff?
Thanks
Bob