Skip to content

Commit 2621e9d

Browse files
committed
fix
1 parent 69adb08 commit 2621e9d

File tree

1 file changed

+3
-3
lines changed
  • src/main/resources/embedding/assets

1 file changed

+3
-3
lines changed

src/main/resources/embedding/assets/entry.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $(function(){
22

33
function generateSnippetElement(repo, filename, commit, lineStartNum, lineEndNum, content, url, commitUrl){
44
return [
5-
"<style>.prettyprint ol{word-wrap: normal;} .prettyprint ol.linenums > li { list-style-type: decimal; }</style>",
5+
"<style>.prettyprint ol{word-wrap:normal;} .prettyprint ol.linenums > li {list-style-type:decimal;}</style>",
66
"<div class='panel panel-default'>",
77
"<div class='panel-heading'>",
88
"<span><b><a href="+ url + ">" + repo + "/" + filename + "</a></b></span>",
@@ -11,7 +11,7 @@ $(function(){
1111
"<span><a href=" + commitUrl + ">" + commit + "</a></span>",
1212
"</div>",
1313
"<div class='panel-body' style='padding:0; background-color:white;'>",
14-
"<pre class='prettyprint linenums:" + lineStartNum + "' style='padding-left: 25px;'>",
14+
"<pre class='prettyprint linenums:" + lineStartNum + "' style='padding-left:15px; margin-bottom:0;'>",
1515
content,
1616
"</pre>",
1717
"</div>",
@@ -63,7 +63,7 @@ $(function(){
6363
let startLine = Number(mat[6]);
6464
let endLine = startLine;
6565
if(typeof mat[7] !== "undefined"){
66-
endLine = Number(mat[6].replace("-L", ""));
66+
endLine = Number(mat[7].replace("-L", ""));
6767
};
6868
let commitUrl = getCommitUrl(mat)
6969
try{

0 commit comments

Comments
 (0)