aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanh Vuong <thanhvg@gmail.com>2019-08-24 17:42:21 -0600
committerThanh Vuong <thanhvg@gmail.com>2019-08-24 17:42:21 -0600
commit2db3049f3e021ae861da175ec8e0582472b956f0 (patch)
treeb577934f6e25082f2d9cd0622b513acb12d18cae
parentfcc90d466ebf43202485d3ba1f0a8f314df7f5ae (diff)
info
-rw-r--r--hnreader.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/hnreader.el b/hnreader.el
index 1a0865e..726fbdc 100644
--- a/hnreader.el
+++ b/hnreader.el
@@ -106,13 +106,17 @@ third one is 80.")
(user (dom-by-class fat-item "^hnuser$"))
(score (dom-by-class fat-item "^score$"))
(tr-tag (dom-by-tag fat-item 'tr))
+ (comment-count (last (dom-by-tag (dom-by-class fat-item "^subtext$") 'a)))
(intro (if (= (length tr-tag) 6)
(nth 3 tr-tag)
nil)))
+ ;; (setq thanh tr-tag)
+ ;; (setq thanh-fat fat-item)
(cons
- (format "%s | by %s\n"
+ (format "%s | by %s | %s\n"
(dom-text score)
- (dom-text user))
+ (dom-text user)
+ (dom-text comment-count))
intro)))
(defun hnreader--print-node (node)