Index: components/dom_distiller/standalone/content_extractor.cc |
diff --git a/components/dom_distiller/standalone/content_extractor.cc b/components/dom_distiller/standalone/content_extractor.cc |
index 150fd3196dc28134aeaa34ca76fa58ba655ee22b..b6a5a4e98995f031a480efbf158ac52d48a2b8c7 100644 |
--- a/components/dom_distiller/standalone/content_extractor.cc |
+++ b/components/dom_distiller/standalone/content_extractor.cc |
@@ -138,12 +138,23 @@ std::string GetReadableArticleString( |
output << "Article Title: " << article_proto.title() << std::endl; |
output << "# of pages: " << article_proto.pages_size() << std::endl; |
for (int i = 0; i < article_proto.pages_size(); ++i) { |
+ if (i > 0) output << std::endl; |
const DistilledPageProto& page = article_proto.pages(i); |
output << "Page " << i << std::endl; |
output << "URL: " << page.url() << std::endl; |
output << "Content: " << page.html() << std::endl; |
if (page.has_debug_info() && page.debug_info().has_log()) |
output << "Log: " << page.debug_info().log() << std::endl; |
+ if (page.has_pagination_info()) { |
+ if (page.pagination_info().has_next_page()) { |
+ output << "Next Page: " << page.pagination_info().next_page() |
+ << std::endl; |
+ } |
+ if (page.pagination_info().has_prev_page()) { |
+ output << "Prev Page: " << page.pagination_info().prev_page() |
+ << std::endl; |
+ } |
+ } |
} |
return output.str(); |
} |