Fix error page alignment problems in various browsers

issue #418
This commit is contained in:
Carsten Brandt
2013-05-26 23:50:23 +02:00
parent 1d3df026ae
commit cb8cc9f61d
2 changed files with 14 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ $context = $this->context;
<li class="<?php if (!$context->isCoreFile($file) || $index === 1) echo 'application'; ?> call-stack-item">
<div class="element-wrap">
<div class="element">
<span class="line-number"><?php echo (int)$index; ?>.</span>
<span class="item-number"><?php echo (int)$index; ?>.</span>
<span class="text"><?php if ($file !== null) echo 'in ' . $context->htmlEncode($file); ?></span>
<?php if ($method !== null): ?>
<span class="call">
@@ -36,7 +36,12 @@ $context = $this->context;
<?php endfor; ?>
<div class="code">
<span class="lines"><?php for ($i = $begin; $i <= $end; ++$i) echo (int)$i . '<br/>'; ?></span>
<pre><?php for ($i = $begin; $i <= $end; ++$i) echo $context->htmlEncode($lines[$i]); ?></pre>
<pre><?php
// fill empty lines with a whitespace to avoid rendering problems in opera
for ($i = $begin; $i <= $end; ++$i) {
echo (trim($lines[$i]) == '') ? " \n" : $context->htmlEncode($lines[$i]);
}
?></pre>
</div>
</div>
<?php endif; ?>