Commits

Christian Jann  committed 9d0b643

Not longer necessary

  • Participants
  • Parent commits 9ad57d3

Comments (0)

Files changed (3)

File tinkerer/ext/aggregator.py

                     post[:11], # first 11 characters is path (YYYY/MM/DD/)
                     post[11:], # following characters represent filename
                     True)      # hyperlink title to post
-            metadata.body = patch.strip_xml_declaration(metadata.body)
             context["posts"].append(metadata)
 
 

File tinkerer/ext/patch.py

     # recurse            
     for child_node in node:
         patch_node(app, child_node, docpath, docname)
-
-
-
-def strip_xml_declaration(body):
-    """
-    Remove XML declaration from document body.
-    """
-    return body.replace('<?xml version="1.0" ?>', '')
-

File tinkerer/ext/rss.py

         context["items"].append({
                     "title": env.titles[post].astext(),
                     "link": link,
-                    "description": patch.strip_xml_declaration(patch.patch_links(app,
+                    "description": patch.patch_links(app,
                             env.blog_metadata[post].body, 
                             app.config.website + post[:11], # first 11 characters is path (YYYY/MM/DD/)
-                            post[11:])), # following characters represent filename
+                            post[11:]), # following characters represent filename
                     "categories": categories,
                     "pubDate": timestamp
                 })