Formatting state actions sometimes doesn't work

0 votes
asked Sep 21, 2018 in Bug by edobez (140 points)

The formatting for the state actions works until substates are added. For formatting I mean new line (\n) or tab (\t).

Example 1 (formatting is correct):

state Active {
Active: entry / HAL_CAN_Init(...) \n\t HAL_CAN_Start(...) \n\t HAL_CAN_ActivateNotification(...)
Active: exit / HAL_CAN_DeactivateNotification(...) \n\t HAL_CAN_Stop(...) \n\t HAL_CAN_DeInit(...)
Active: SEND_MSG (msg, mailbox) / \
\n\t HAL_CAN_AbortTxRequest(...) \
\n\t HAL_CAN_AddTxMessage(...)
Active: RX_MSG (msg) / \
}


Example 2 (formatting not correct):

state Active {
Active: entry / HAL_CAN_Init(...) \n\t HAL_CAN_Start(...) \n\t HAL_CAN_ActivateNotification(...)
Active: exit / HAL_CAN_DeactivateNotification(...) \n\t HAL_CAN_Stop(...) \n\t HAL_CAN_DeInit(...)
Active: SEND_MSG (msg, mailbox) / \
\n\t HAL_CAN_AbortTxRequest(...) \
\n\t HAL_CAN_AddTxMessage(...)
Active: RX_MSG (msg) / \

[*] --> Processing
}

As you can see, the only difference is the state Processing, and that breaks the formatting.

1 Answer

0 votes
answered Sep 23, 2018 by plantuml (295,000 points)
selected Sep 24, 2018 by edobez
 
Best answer
Thanks for the report.

This has been fixed in last release V1.2018.11

Regards,
...