mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 16:43:00 +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:
|
if not feet and value < 0:
|
||||||
tx_dist += "-"
|
tx_dist += "-"
|
||||||
if add_inches:
|
if add_inches:
|
||||||
tx_dist += str(inches)
|
if feet == 0 and inches == 0:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
tx_dist += str(inches)
|
||||||
if add_inches and frac:
|
if add_inches and frac:
|
||||||
tx_dist += " "
|
if feet == 0 and inches == 0:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
tx_dist += " "
|
||||||
if frac:
|
if frac:
|
||||||
tx_dist += str(frac) + "/" + str(base)
|
tx_dist += str(frac) + "/" + str(base)
|
||||||
if add_inches or frac:
|
if add_inches or frac:
|
||||||
|
|||||||
Reference in New Issue
Block a user