fmt: fix #8974

also add a regression test
5d94e754f4Jacob G-W committed on 6/4/2021, 7:49:05 AM· committed by Veikka Tuominenparent83e0a49
2 files changedLine totals unavailable