mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
have dimensions like 0 7/8" read like 7/8"
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user