Permalink
Browse files

Tabs to spaces

  • Loading branch information...
1 parent 1f9298b commit 885f57e3cd3c301bc1fef749e83b7e4d8f7d13b7 Michael committed Jan 11, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 README
View
14 README
@@ -14,21 +14,21 @@ Configuration
The main configuration element si specifiying what paragraph elements are in scope and are not. To this end
we specify the elements on or near Line 54:
- this.paraSelctors = $$(
- ".entry p:not(p[class]):not(:empty)",
- ".post p:not(p[class]):not(:empty)",
- "article p:not(p[class]):not(:empty)"
- );
+ this.paraSelctors = $$(
+ ".entry p:not(p[class]):not(:empty)",
+ ".post p:not(p[class]):not(:empty)",
+ "article p:not(p[class]):not(:empty)"
+ );
This covers a lot of common markup in many sites and blog. However this could be configured for your specific site.
Example: If all you P tags reside in DIV tags with the "entry" classname, then this would be sufficient:
- this.paraSelctors = $$(".entry p:not(p[class]):not(:empty)");
+ this.paraSelctors = $$(".entry p:not(p[class]):not(:empty)");
Over at The New York Times, we use the following:
- this.paraSelctors = $$('.articleBody p:not(p[class]):not(:empty)', '#articleBody p:not(p[class]):not(:empty)', '#content div.entry-content p:not(p[class]):not(:empty)');
+ this.paraSelctors = $$('.articleBody p:not(p[class]):not(:empty)', '#articleBody p:not(p[class]):not(:empty)', '#content div.entry-content p:not(p[class]):not(:empty)');
Dependencies
------------

0 comments on commit 885f57e

Please sign in to comment.