aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpyblog3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyblog b/pyblog
index eca043ff..1ace53e8 100755
--- a/pyblog
+++ b/pyblog
@@ -385,6 +385,9 @@ def generate_index_and_feed():
article.header.extract()
if article.footer is not None:
article.footer.extract()
+ # remove line numbers
+ for line_number_span in article.find_all("span", attrs={"class": "line-number"}):
+ line_number_span.extract()
entry.content_html = ''.join([str(content)
for content in article.contents])
entry.content = ET.Element("content", type="html")