Skip to content

Commit 4370ebe

Browse files
committed
[commands] minor report formatting fix
1 parent c046b41 commit 4370ebe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/fontline/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def get_font_report(fontpath):
100100
report.append(":" * 50)
101101
report.append("hhea metrics / UPM: {0:.3g}".format(metrics.hheaascdesc_to_upm))
102102
report.append("typo metrics / UPM: {0:.3g}".format(metrics.typo_to_upm))
103-
report.append("win metrics / UPM: {0:.3g}".format(metrics.winascdesc_to_upm))
103+
report.append("win metrics / UPM: {0:.3g}".format(metrics.winascdesc_to_upm))
104104

105105
return "\n".join(report)
106106

tests/test_report_cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def test_report_cmd_reportstring_descent_typodesc(capsys):
243243
sys.argv = ['font-line', 'report', filepath]
244244
main()
245245
out, err = capsys.readouterr()
246-
assert "[hhea] Descent to [OS/2] TypoDescender: -9" in out
246+
assert "[hhea] Descent to [OS/2] TypoDescender: -9" in out
247247

248248

249249
def test_report_cmd_reportstring_typo_to_upm(capsys):
@@ -261,7 +261,7 @@ def test_report_cmd_reportstring_win_to_upm(capsys):
261261
sys.argv = ['font-line', 'report', filepath]
262262
main()
263263
out, err = capsys.readouterr()
264-
assert "win metrics / UPM: 1.16" in out
264+
assert "win metrics / UPM: 1.16" in out
265265

266266

267267
def test_report_cmd_reportstring_hhea_to_upm(capsys):

0 commit comments

Comments
 (0)