From: Kefu Chai Date: Thu, 19 Nov 2020 08:59:45 +0000 (+0800) Subject: doc/script/gen_state_diagram: wrap lines which is over 80 chars X-Git-Tag: v16.1.0~542^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38183%2Fhead;p=ceph.git doc/script/gen_state_diagram: wrap lines which is over 80 chars Signed-off-by: Kefu Chai --- diff --git a/doc/scripts/gen_state_diagram.py b/doc/scripts/gen_state_diagram.py index 481160901a9f..b084f8a742ab 100755 --- a/doc/scripts/gen_state_diagram.py +++ b/doc/scripts/gen_state_diagram.py @@ -85,13 +85,19 @@ class StateMachineRenderer(object): ]) def __str__(self): - return "-------------------\n\nstates: %s\n\n machines: %s\n\n edges: %s\n\n context %s\n\n state_contents %s\n\n--------------------" % ( - self.states, - self.machines, - self.edges, - self.context, - self.state_contents - ) + return f'''------------------- + + states: {self.states} + + machines: {self.machines} + + edges: {self.edges} + + context: {self.context} + + state_contents: {self.state_contents} + +--------------------''' def read_input(self, input_lines): previous_line = None