Only the first line of any component description is exported to XMI file

0 votes
asked Jan 31, 2021 in Bug by pasza (180 points)
edited Jan 31, 2021 by pasza

The following diagram

@startuml note-bug
component test
note top of test: first line\nsecond line
note bottom of test
    first line
    second line
end note
@enduml

when exported as XMI file with

java -jar plantuml.jar -txmi

produces the following file:

so only the first line of the notes are exported in both cases

commented Jan 31, 2021 by pasza (180 points)

looks like this is also applicable to any multiline component description like

card note [
    first line
    second line
]

1 Answer

0 votes
answered Aug 29 by plantuml (279,680 points)

Sorry for the delay and thanks for the report.

The question is: which separator should we use in the exported XMI ?

Something like :

<UML:Component name="first line\\nsecond line" namespace="model1" xmi.id="cl0004">

What do you think about it?

...