mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-13 06:53:36 +00:00
have dimensions like 0 7/8" read like 7/8"
This commit is contained in:
@@ -211,8 +211,14 @@ def format_distance(
|
|||||||
if not feet and value < 0:
|
if not feet and value < 0:
|
||||||
tx_dist += "-"
|
tx_dist += "-"
|
||||||
if add_inches:
|
if add_inches:
|
||||||
|
if feet == 0 and inches == 0:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
tx_dist += str(inches)
|
tx_dist += str(inches)
|
||||||
if add_inches and frac:
|
if add_inches and frac:
|
||||||
|
if feet == 0 and inches == 0:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
tx_dist += " "
|
tx_dist += " "
|
||||||
if frac:
|
if frac:
|
||||||
tx_dist += str(frac) + "/" + str(base)
|
tx_dist += str(frac) + "/" + str(base)
|
||||||
|
|||||||
Reference in New Issue
Block a user