BC break when using custom separator in Class diagram

0 votes
asked 3 days ago in Bug by jawira (120 points)

Hello. Since PlantUML v1.2026.7 I have an error generating Class diagrams.

@startuml
set separator \ 
!pragma useIntermediatePackages false
skinparam linetype ortho
skinparam MinClassWidth 140
hide circle
hide empty members
!theme _none_
class App\Entity\ImageRequest {
+ id : ?int = null
+ user : ?string = null
+ max : ?int = null
+ columns : ?int = null
+ size : ?App\Model\Image\SizeEnum = null
+ createdAt : ?DateTime = null
}
@enduml

This should be the output from the previous code:

Instead, this is the error message I got:

  Error Output:
  ================
  ERROR  1
  Syntax Error? (Assumed diagram type: sequence)

The offending line is "set separator \ ", note there is an empty space at the end of the line.
I tried to fix this using double backslash, but then the separator is simply ignored.

1 Answer

0 votes
answered 7 hours ago by The-Lu (91,600 points)

Hello J.,

Instead:

  • Could you use slash?

Because backslash is already use for continuation and for escaping char, as:

@startuml

package a\t\d\n {
    class D\nD
}

class a\t\b\C\t\n\n {}

@enduml

Regards,
Th.

...