Browse Source

Wikipedia: ignore coordinates entry when first paragraph

master
parent
commit
02d6eaaec9
  1. 2
      src/wikipedia.js

2
src/wikipedia.js

@ -32,7 +32,7 @@ function prepare (div) {
}
var p = content.firstChild.firstChild
while (p && (p.tagName !== 'P' || p.className !== '' || p.textContent.match(/^\s*$/))) {
while (p && (p.tagName !== 'P' || p.className !== '' || p.textContent.match(/^\s*$/) || p.querySelector('span#coordinates'))) {
p = p.nextSibling
}

Loading…
Cancel
Save