have dimensions like 0 7/8" read like 7/8"

This commit is contained in:
Ryan Schultz
2024-10-13 08:48:21 -05:00
parent 6f6700db06
commit 2f0500a14b
@@ -211,9 +211,15 @@ def format_distance(
if not feet and value < 0:
tx_dist += "-"
if add_inches:
tx_dist += str(inches)
if feet == 0 and inches == 0:
pass
else:
tx_dist += str(inches)
if add_inches and frac:
tx_dist += " "
if feet == 0 and inches == 0:
pass
else:
tx_dist += " "
if frac:
tx_dist += str(frac) + "/" + str(base)
if add_inches or frac: