* Finish task #64269.

This commit is contained in:
liyuchun
2022-08-10 07:59:43 +00:00
parent 273698d8e6
commit e05751f5d7
2 changed files with 29 additions and 31 deletions
+3 -1
View File
@@ -80,8 +80,10 @@ class compile extends control
$job = $this->loadModel('job')->getByID($build->job);
if(empty($build->logs) and !in_array($build->status, array('created', 'pending'))) $build->logs = $this->compile->getLogs($job, $build);
$logs = str_replace("\r\n", "<br />", $build->logs);
$logs = str_replace("\n", "<br />", $logs);
$this->view->logs = str_replace("\r\n","<br />", $build->logs);
$this->view->logs = $logs;
$this->view->build = $build;
$this->view->job = $job;