When a mind map created with FreeMind 0.8.1 has notes whose text contains newlines, the newlines are dropped upon the conversion of the mind map to FreeMind 0.9.0 RC8.
Affected FreeMind versions: 0.9.0 RC8 - 0.9.0 RC1, and probably older 0.9.0 versions.
Environment: Windows Vista, Java 1.6.0_20.
Procedure:
* Open the attached mind map "Notes with newlines.mm" in FreeMind 0.8.1
* View the note of the node "Node with a note"
* Observation: The note contains two lines: "Line 1" and "Line 2".
* Open the attached mind map "Notes with newlines.mm" in FreeMind 0.9.0 RC8
* View the note of the node "Node with a note"
* Observation: The note has node line: "Line 1Line 2", as it should not.
--Dan
Notes with newlines
It looks like is being stripped out of the mind map when is removed.
/* is illegal, but sometimes occurs in 0.8.x maps.
* Thus, we exclude all from 0 - 1f and replace them by nothing.
* TODO: Which more are illegal?? */
fileContents = fileContents.replaceAll("�*1?[0-9A-Fa-f];", "");
So there's no way of knowing when it comes to transform the xml if there is a newline. Is this the correct behaviour?
If this was changed to allow to remain it would also be necessary to alter the freemind_version_update.xslt.
Thanks, Liam.
Newlines can also be found in the notes of the mind map "Supercalcolatori e superbambini.mm" attached to the bug report "Notes from 0.8.1 disappears in 0.9 RC3"[1]. That mind map can also be used to test this bug with dropped newlines.
--Dan
[1] http://sourceforge.net/tracker/index.php?func=detail&aid=2705587&group_id=7118&atid=107118
Fixed in 0.9.0 RC10. --Dan