Skip to content

Commit

Permalink
parser: strip trailling spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarto committed Sep 17, 2020
1 parent 6fe29f3 commit 026499f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions monotome/scripts/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ window.onload = function() {
})

// listen after indexer requests to open files
document.body.addEventListener("open-file", function (e) {
open(e.detail.file, { scrollTo: true, changeHistory: true })
document.body.addEventListener("open-file", function (e) {
open(e.detail.file, { scrollTo: true, changeHistory: true })
})

function open(f, opts) {
Expand Down Expand Up @@ -69,8 +69,8 @@ window.onload = function() {
function link(node, i, text) {
if (!text) text = i
return el("a", {
href: `${index.root}${node}/${i}`,
text: text,
href: `${index.root}${node}/${i}`,
text: text,
onclick: linkHandler(`${index.root}${node}/${i}`)
})
}
Expand Down Expand Up @@ -99,7 +99,7 @@ window.onload = function() {
// set page title
document.title = index.title
// add start to index
indexInject(".", "start")
indexInject(".", "start")
Object.keys(index.subjects).forEach(function(subject) {
indexInject(subject, subject)
var ul = el("ul")
Expand Down

0 comments on commit 026499f

Please sign in to comment.