From 145ffc085801cbf40a0c7d71f40d7a4be9b5d2cc Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 17 Mar 2023 08:15:31 -0300 Subject: [PATCH] add anchors to line numbers (#l500) --- static/application.js | 2 +- static/index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/application.js b/static/application.js index 97f7c3c..e8ce0cc 100644 --- a/static/application.js +++ b/static/application.js @@ -223,7 +223,7 @@ haste.prototype.lookupTypeByExtension = function (ext) { haste.prototype.addLineNumbers = function (lineCount) { var h = ''; for (var i = 0; i < lineCount; i++) { - h += (i + 1).toString() + '
'; + h += "" + (i + 1).toString() + "" + '
'; } $('#linenos').html(h); }; diff --git a/static/index.html b/static/index.html index 6e87fde..33250c7 100644 --- a/static/index.html +++ b/static/index.html @@ -12,7 +12,7 @@ - + @@ -23,8 +23,8 @@ - - + +