From 82529e772edf85677d265d8bc4bbfa3aa0e0658d Mon Sep 17 00:00:00 2001 From: Alexander Zolotarev Date: Mon, 12 Aug 2013 16:20:20 +0300 Subject: [PATCH] Remove geoCoord icon from final htmls as we geocode them separately --- builder/htmlprocessor/strip_function.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/htmlprocessor/strip_function.py b/builder/htmlprocessor/strip_function.py index 0b13c99..45cef23 100644 --- a/builder/htmlprocessor/strip_function.py +++ b/builder/htmlprocessor/strip_function.py @@ -20,6 +20,9 @@ def cleanUp(soup): [s.decompose() for s in content.findAll("button", {"class": "languageSelector"})] [s.decompose() for s in content.findAll("a", {"class": "section_anchors"})] [s.decompose() for s in content.findAll("div", {"id": "mw-mf-language-section"})] + # cut off geo coords as we process them separately in original files + [s.decompose() for s in content.findAll("div", {"id": "geoCoord"})] + # delete empty sections sections = content.findAll("div", {"class": "section"})