mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 01:11:40 +00:00
Small fix on format_distance to show zero like 0'.
This commit is contained in:
@@ -202,7 +202,7 @@ def format_distance(
|
|||||||
if not isArea:
|
if not isArea:
|
||||||
add_inches = bool(inches) or not suppress_zero_inches
|
add_inches = bool(inches) or not suppress_zero_inches
|
||||||
tx_dist = ""
|
tx_dist = ""
|
||||||
if feet:
|
if feet is not None:
|
||||||
tx_dist += str(feet) + "'"
|
tx_dist += str(feet) + "'"
|
||||||
if feet and add_inches:
|
if feet and add_inches:
|
||||||
tx_dist += " - "
|
tx_dist += " - "
|
||||||
|
|||||||
Reference in New Issue
Block a user