newpage don't keep params

0 votes
asked Nov 27, 2015 in bug by vicnet (280 points)
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

2 Answers

0 votes
answered Nov 28, 2015 by plantuml (134,510 points)

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!

0 votes
answered Nov 30, 2015 by vicnet (280 points)

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

 

commented Dec 3, 2015 by plantuml (134,510 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 ?
commented Dec 3, 2015 by vicnet (280 points)
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.
commented Dec 4, 2015 by plantuml (134,510 points)
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,
...