Skip to content

Commit

Permalink
Fixed line numbers in Opera.
Browse files Browse the repository at this point in the history
git-svn-id: http://syntaxhighlighter.googlecode.com/svn/trunk@86 251d3c6e-3330-0410-8d90-6150dfcfe9e1
  • Loading branch information
alex.gorbatchev committed Oct 9, 2008
1 parent f7aa427 commit 0b21170
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Scripts/shCore.js
Expand Up @@ -415,12 +415,12 @@ dp.sh.Highlighter.prototype.SwitchToList = function()
}
}

columns.className = 'columns';
columns.className = 'cumns';
columns.appendChild(div);
this.bar.appendChild(columns);
}

for(var i = 0, lineIndex = this.firstLine; i < lines.length - 1; i++, lineIndex++)
for(var i = 0; i < lines.length - 1; i++)
{
var li = this.CreateElement('LI');
var span = this.CreateElement('SPAN');
Expand Down Expand Up @@ -499,7 +499,8 @@ dp.sh.Highlighter.prototype.Highlight = function(code)
this.bar.className = 'bar';

// set the first line
this.ol.start = this.firstLine;
if (this.firstLine != null)
this.ol.start = this.firstLine;

if(this.CssClass != null)
this.ol.className = this.CssClass;
Expand Down

0 comments on commit 0b21170

Please sign in to comment.