Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: src/com/dom_distiller/client/DomDistiller.java

Issue 286453002: Add extract_text_only option (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: Rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/com/dom_distiller/client/ContentExtractor.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/com/dom_distiller/client/DomDistiller.java
diff --git a/src/com/dom_distiller/client/DomDistiller.java b/src/com/dom_distiller/client/DomDistiller.java
index 4c647acab2e869a85d20d995b5f416a6344226ab..a4c267a505941676a9e082a3485860d2aa9164bb 100644
--- a/src/com/dom_distiller/client/DomDistiller.java
+++ b/src/com/dom_distiller/client/DomDistiller.java
@@ -28,7 +28,8 @@ public class DomDistiller implements Exportable {
Document.get().getTitle(), Document.get().getDocumentElement()));
DomDistillerProtos.DistilledContent content = DomDistillerProtos.DistilledContent.create();
- content.setHtml(ContentExtractor.extractContent());
+ boolean text_only = options.hasExtractTextOnly() && options.getExtractTextOnly();
+ content.setHtml(ContentExtractor.extractContent(text_only));
result.setDistilledContent(content);
result.setPaginationInfo(PagingLinksFinder.getPaginationInfo());
« no previous file with comments | « src/com/dom_distiller/client/ContentExtractor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698