1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

code style

This commit is contained in:
Egon schmid
2016-04-30 21:30:52 +02:00
parent 891cd3124f
commit 084677cdca

View File

@@ -6,8 +6,8 @@ import hljs from 'highlight.js'
var createGutter = function (str) {
var lc = (str.match(/\n/g) || []).length;
var lines = [];
for (var i=1; i <= lc; i++) {
lines.push('<span>'+i+'</span>');
for (var i = 1; i <= lc; i++) {
lines.push('<span>' + i + '</span>');
}
return '<span>' + lines.join('') + '</span>';
};