Skip to content

Commit

Permalink
Fix #119
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Mar 3, 2023
1 parent 2c33bd3 commit 4595ea5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

1.6.4 (2023-03-03)
------------------

- (Fixed) Invalid output of ``export_to_plantuml`` if ``statechart_preamble`` is enabled, with plantuml-1.2022.12 (`#119 <https://github.com/AlexandreDecan/sismic/issues/119>`__).


1.6.3 (2021-08-05)
------------------
Expand Down
2 changes: 1 addition & 1 deletion sismic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__package__ = 'sismic'
__version__ = '1.6.3'
__version__ = '1.6.4'
__licence__ = 'LGPL3'
__author__ = 'Alexandre Decan'
__url__ = 'https://github.com/AlexandreDecan/sismic/'
Expand Down
2 changes: 2 additions & 0 deletions sismic/io/plantuml.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def export_statechart(self):
if self.statechart_description and self.statechart.description:
self.output('caption {}'.format(self.statechart.description.replace('\n', '\\n')))

def export_preamble(self):
if self.statechart_preamble and self.statechart.preamble:
self.output('note top of {}'.format(self.state_id(self.statechart.root)))
self.indent()
Expand Down Expand Up @@ -249,6 +250,7 @@ def export(self) -> str:

self.export_statechart()
self.export_state(self.statechart.root) # type: ignore
self.export_preamble()

self.output('@enduml')

Expand Down

0 comments on commit 4595ea5

Please sign in to comment.