Menu

#968 Conversion from 0.8.0 to 0.9.0 drops newlines in notes

closed
None
9
2014-08-18
2010-06-27
No

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

Discussion

  • Daniel Polansky

    Daniel Polansky - 2010-06-27

    Notes with newlines

     
  • Daniel Polansky

    Daniel Polansky - 2010-06-27
    • priority: 5 --> 9
    • assigned_to: nobody --> christianfoltin
     
  • Liam Jolly

    Liam Jolly - 2010-09-12

    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("&#x0*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.

     
  • Daniel Polansky

    Daniel Polansky - 2010-10-07

    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

     
  • Daniel Polansky

    Daniel Polansky - 2010-10-22

    Fixed in 0.9.0 RC10. --Dan

     
  • Daniel Polansky

    Daniel Polansky - 2010-10-22
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB