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

Unified Diff: java/org/chromium/distiller/webdocument/DomConverter.java

Issue 1265533004: Handle lists more appropriately (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | java/org/chromium/distiller/webdocument/ElementAction.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: java/org/chromium/distiller/webdocument/DomConverter.java
diff --git a/java/org/chromium/distiller/webdocument/DomConverter.java b/java/org/chromium/distiller/webdocument/DomConverter.java
index 96c9c4b21a1cd3e240b4a2468ffc34e81f519bde..5024a0e3b60383379cc42b8daee41fca86228555 100644
--- a/java/org/chromium/distiller/webdocument/DomConverter.java
+++ b/java/org/chromium/distiller/webdocument/DomConverter.java
@@ -114,6 +114,11 @@ public class DomConverter implements DomWalker.Visitor {
}
break;
+ case "UL":
+ case "OL":
+ // Start list and continue with the dom converter. Builder should handle exiting list.
+ break;
+
// Some components are revisited later in context as they break text-flow of a
// document. e.g. <video> can contain text if format is unsupported.
case "VIDEO":
« no previous file with comments | « no previous file | java/org/chromium/distiller/webdocument/ElementAction.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698