Changeset 5954


Ignore:
Timestamp:
01/24/12 21:04:19 (4 months ago)
Author:
vain
Message:
  • removed the br tags and replaced them with spaces, added width attr to error.css to get the same effect
  • still trying to align the code enumeration with the lines of code
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/errorhandler.core.php

    r5896 r5954  
    566566                $lines_array[$surrounding_lines] = '<span style="color: white; background-color:#BF0000;">'.$lines_array[$surrounding_lines].'</span>'; 
    567567 
    568                 # transform linenumbers array to string for later display 
    569                 $lines_html = implode($lines_array, '<br />'); 
     568                # transform linenumbers array to string for later display, use spaces as separator 
     569                $lines_html = implode($lines_array, ' '); 
    570570 
    571571                # get ALL LINES syntax highlighted source-code of the file and explode it into an array 
  • trunk/themes/core/css/error.css

    r5898 r5954  
    104104} 
    105105 
    106 .num { 
    107     border-right:1px solid gray; 
    108     color:gray; 
    109     float:left; 
    110     font-family:monospace; 
    111     font-size:13px; 
    112     margin-right:6pt; 
    113     padding-right:6pt; 
    114     text-align:right 
    115 } 
    116  
    117106a:hover { 
    118107    color:red; 
     
    124113} 
    125114 
     115.num { 
     116    width: 10px; 
     117    border-right:1px solid gray; 
     118    color:gray; 
     119    padding-right: 6px; 
     120    text-align:right; 
     121    font-family:monospace; 
     122    font-size:14px; 
     123    line-height: 1.3em; 
     124} 
     125 
    126126code { 
    127     white-space:nowrap 
     127    white-space: nowrap; 
     128    font-family: monospace; 
     129    font-size: 14px; 
     130    line-height: 1.3em; 
    128131} 
    129132 
Note: See TracChangeset for help on using the changeset viewer.