Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

newpage don't keep params

0 votes
For example:

@startuml
skinparam handwritten true
<stuff here>
newpage
<second stuff here>
@enduml
 

Second page does not respect skinparam and get back to default.

If I put the same skinparam after newpage, planuml crash.

a+
Vicnet
asked Nov 27, 2015 in bug by vicnet (280 points)

2 Answers

0 votes

Hello,

Thanks for the report. Which version of PlantUML are you using ?

We have tested the following example, and it seems to work:

@startuml
skinparam handwritten true
Alice -> Bob : ok1
newpage
Alice -> Bob : ok2
@enduml

 

Could you post a simple crashing example ?

Thanks again!

answered Nov 28, 2015 by plantuml (124,290 points)
0 votes

Your example works.

I am generating usecase diagram:

@startuml
skinparam handwritten true
(Alice) -> Bob : ok1
newpage
(Alice) -> Bob : ok2
@enduml

This is not OK.

My version is 8032

The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.36.0 (20140111.2315)
OpenJDK Runtime Environment
OpenJDK 64-Bit Server VM
1.7.0_91-b02 Linux
Processors: 4

 

answered Nov 30, 2015 by vicnet (280 points)
This is not very consistent with sequence diagram, but you can repeat the skinparam command.

On version 8033, the following example is working:

@startuml
skinparam handwritten true
(Alice) -> Bob : ok1
newpage
skinparam handwritten true
(Alice) -> Bob : ok2
@enduml

Is it crashing on your config ?
Your example is ok.

But this one crash:

@startuml
skinparam hand {
    written true
}
(Alice) -> Bob : ok1
newpage
skinparam hand {
    written true
}
(Alice) -> Bob : ok2
@enduml

Note the use of { }
If I remove the second { } it is ok.
Ok, thanks for the example.
This should be fixed with last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
Tell us if it's working for you now!
Regards,
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...