
diff --git a/tests/data/filter/xpath-sifter.ini b/tests/data/filter/xpath-sifter.ini
new file mode 100644
index 0000000..90a08a6
--- /dev/null
+++ b/tests/data/filter/xpath-sifter.ini
@@ -0,0 +1,6 @@
+[Planet]
+filters = xpath_sifter.py
+
+[xpath_sifter.py]
+require:
+ //atom:category[@term='two']
diff --git a/tests/data/reconstitute/category_label.xml b/tests/data/reconstitute/category_label.xml
new file mode 100644
index 0000000..fc38fc7
--- /dev/null
+++ b/tests/data/reconstitute/category_label.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
diff --git a/tests/data/reconstitute/category_scheme.xml b/tests/data/reconstitute/category_scheme.xml
new file mode 100644
index 0000000..b1cbbb4
--- /dev/null
+++ b/tests/data/reconstitute/category_scheme.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
diff --git a/tests/data/reconstitute/category_term.xml b/tests/data/reconstitute/category_term.xml
new file mode 100644
index 0000000..344fed6
--- /dev/null
+++ b/tests/data/reconstitute/category_term.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
diff --git a/tests/data/reconstitute/source_category.xml b/tests/data/reconstitute/source_category.xml
new file mode 100644
index 0000000..722e347
--- /dev/null
+++ b/tests/data/reconstitute/source_category.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/test_filters.py b/tests/test_filters.py
index 14aafe9..aeee9a4 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -58,6 +58,24 @@ class FilterTests(unittest.TestCase):
self.assertEqual(u'before--after',
excerpt.firstChild.firstChild.nodeValue)
+ def test_xpath_filter(self):
+ config.load('tests/data/filter/xpath-sifter.ini')
+ testfile = 'tests/data/filter/category-one.xml'
+
+ output = open(testfile).read()
+ for filter in config.filters():
+ output = shell.run(filter, output, mode="filter")
+
+ self.assertEqual('', output)
+
+ testfile = 'tests/data/filter/category-two.xml'
+
+ output = open(testfile).read()
+ for filter in config.filters():
+ output = shell.run(filter, output, mode="filter")
+
+ self.assertNotEqual('', output)
+
try:
from subprocess import Popen, PIPE
sed=Popen(['sed','--version'],stdout=PIPE,stderr=PIPE)
diff --git a/themes/asf/default.css b/themes/asf/default.css
index a56f649..c5169f0 100644
--- a/themes/asf/default.css
+++ b/themes/asf/default.css
@@ -306,8 +306,8 @@ br {
}
/* engadget */
-h6 {
- clear: left !important;
+p {
+ clear: none !important;
}
/* cadenhead */