Skip to content

Commit

Permalink
Makes squirt recognise spaces before elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Slater committed Mar 16, 2014
1 parent 03cf7bf commit e289b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readability.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ var readability = {
child = node.childNodes[childIdx];
nodeName = child.nodeName.toLowerCase();
if(nodeName == "#text"){
text += child.nodeValue.trim('\n');
text += child.nodeValue.replace(/^\n+/, "").replace(/\n+$/, "");
} else {
text += extract(child);
}
Expand Down

0 comments on commit e289b9b

Please sign in to comment.