code_size_compare: right-align numbers in the comparison result
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
diff --git a/scripts/code_size_compare.py b/scripts/code_size_compare.py
index 672b803..d1e8a1b 100755
--- a/scripts/code_size_compare.py
+++ b/scripts/code_size_compare.py
@@ -604,10 +604,10 @@
if with_markdown:
dash_line = [":----", "----:", "----:", "----:", "----:"]
- line_format = "| {0:<30} | {1:<10} | {3:<10} | {2:<12} | {4:<12} |\n"
+ line_format = "| {0:<30} | {1:>10} | {3:>10} | {2:>12} | {4:>12} |\n"
bold_text = lambda x: '**' + str(x) + '**'
else:
- line_format = "{0:<30} {1:<10} {3:<10} {2:<12} {4:<12}\n"
+ line_format = "{0:<30} {1:>10} {3:>10} {2:>12} {4:>12}\n"
def cal_sect_change(
old_size: typing.Optional[CodeSizeGeneratorWithSize.SizeEntry],