mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
code style
This commit is contained in:
@@ -6,8 +6,8 @@ import hljs from 'highlight.js'
|
|||||||
var createGutter = function (str) {
|
var createGutter = function (str) {
|
||||||
var lc = (str.match(/\n/g) || []).length;
|
var lc = (str.match(/\n/g) || []).length;
|
||||||
var lines = [];
|
var lines = [];
|
||||||
for (var i=1; i <= lc; i++) {
|
for (var i = 1; i <= lc; i++) {
|
||||||
lines.push('<span>'+i+'</span>');
|
lines.push('<span>' + i + '</span>');
|
||||||
}
|
}
|
||||||
return '<span>' + lines.join('') + '</span>';
|
return '<span>' + lines.join('') + '</span>';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user