mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix task json issue due to "Bad control character in string literal in JSON at position XXXX"
This commit is contained in:
@@ -1514,11 +1514,12 @@ class Sequence(blenderbim.core.tool.Sequence):
|
|||||||
else:
|
else:
|
||||||
compare_start = schedule_start
|
compare_start = schedule_start
|
||||||
compare_finish = schedule_finish
|
compare_finish = schedule_finish
|
||||||
|
task_name = task.Name or "Unnamed"
|
||||||
|
task_name = task_name.replace('\n', "")
|
||||||
data = {
|
data = {
|
||||||
"pID": task.id(),
|
"pID": task.id(),
|
||||||
"pName": task.Name,
|
"pName": task_name,
|
||||||
"pCaption": task.Name,
|
"pCaption": task_name,
|
||||||
"pStart": schedule_start,
|
"pStart": schedule_start,
|
||||||
"pEnd": schedule_finish ,
|
"pEnd": schedule_finish ,
|
||||||
"pPlanStart": compare_start,
|
"pPlanStart": compare_start,
|
||||||
|
|||||||
Reference in New Issue
Block a user