Report formatting

This commit is contained in:
FlightControl_Master 2017-08-06 12:19:05 +02:00
parent 82c7121125
commit 2dcc1aaf0a
2 changed files with 2 additions and 2 deletions

View File

@ -902,6 +902,7 @@ function MISSION:ReportOverview( ReportGroup, TaskStatus )
for TaskID, Task in UTILS.spairs( self:GetTasks(), function( t, a, b ) return t[a]:ReportOrder( ReportGroup ) < t[b]:ReportOrder( ReportGroup ) end ) do
local Task = Task -- Tasking.Task#TASK
if Task:Is( TaskStatus ) then
Report:Add( string.rep( "-", 140 ) )
Report:Add( " - " .. Task:ReportOverview( ReportGroup ) )
end
end

View File

@ -1401,8 +1401,7 @@ function TASK:ReportOverview( ReportGroup ) --R2.1 fixed report. Now nicely form
if Line ~= 0 then
Report:AddIndent( LineReport:Text( ", " ) )
else
Report:Add( TaskName )
Report:AddIndent( " " .. LineReport:Text( ", " ) )
Report:Add( TaskName .. " - " .. LineReport:Text( ", " ) )
end
LineReport = REPORT:New()
Line = math.floor( TaskInfo.TaskInfoOrder / 10 )