From 28a8c938d95d001c921523bafcd5cb76fb4b519d Mon Sep 17 00:00:00 2001 From: Pete Jemian Date: Tue, 17 May 2022 13:49:25 -0500 Subject: [PATCH] STY #90 --- adl2pydm/output_handler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adl2pydm/output_handler.py b/adl2pydm/output_handler.py index a4fe5bf..e3a0d79 100644 --- a/adl2pydm/output_handler.py +++ b/adl2pydm/output_handler.py @@ -284,7 +284,12 @@ def write_font_size(self, qw, block, **kwargs): smallest = 4 largest = 10 margin = 3 - pointsize = int(max(smallest, min(largest, block.geometry.height - 2 * margin))) + pointsize = int( + max( + smallest, + min(largest, block.geometry.height - 2 * margin) + ) + ) propty = self.writer.writeOpenProperty(qw, "font", stdset="0") font = self.writer.writeOpenTag(propty, "font")