aboutsummaryrefslogtreecommitdiffstats
path: root/reading.js
diff options
context:
space:
mode:
Diffstat (limited to 'reading.js')
-rw-r--r--reading.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/reading.js b/reading.js
index b43f36f..9a1802f 100644
--- a/reading.js
+++ b/reading.js
@@ -67,7 +67,11 @@ Scraper.prototype = {
getTitle: function() {
var title = $f('//title');
- return title ? title.text : null;
+ return title
+ ? title.text.replace(/^\s+/, '')
+ .replace(/\s+$/, '')
+ .replace(/\n/g, ' ')
+ : null;
},
getSelected: function() {