diff --git a/module/bug/model.php b/module/bug/model.php
index 443f48385e..728af61a26 100644
--- a/module/bug/model.php
+++ b/module/bug/model.php
@@ -1267,13 +1267,13 @@ class bugModel extends model
if(!isset($caseSteps[$stepId])) continue;
$step = $caseSteps[$stepId];
- $stepDesc = str_replace("\n", "
", $step->desc);
- $stepExpect = str_replace("\n", "
", $step->expect);
+ $stepDesc = '
' . str_replace("\n", '
', $step->desc) . '
'; + $stepExpect = '' . str_replace("\n", '
', $step->expect) . '
'; $stepResult = (!isset($stepResults[$stepId]) or empty($stepResults[$stepId]['real'])) ? '' : $stepResults[$stepId]['real']; - $bugStep .= $step->name . '. ' . $stepDesc . "' . $step->name . '. ' . $stepDesc . '
'; + $bugResult .= '' . $step->name . '. ' . $stepResult . '
'; + $bugExpect .= '' . $step->name . '. ' . $stepExpect . '
'; } }