diff --git a/pre-commit.py b/pre-commit.py index 2ac5b65..23168e3 100755 --- a/pre-commit.py +++ b/pre-commit.py @@ -138,7 +138,7 @@ def replace_tags(article, search_list, replace_list): # Return text in
for rss description # ======================================================== def get_text_rss(content): - soup = BeautifulSoup(content) + soup = BeautifulSoup(content) date = soup.find(attrs={'class': 'date'}) date.extract() title = soup.find(attrs={'class': 'article_title'}) @@ -558,7 +558,8 @@ for filename in added_files+modified_files: tags_header = "" for tag in tags_full_list: tags_header += "
" - tags_header += "\"test\"" + tags_header += ("\"test\"") tags_header += (""+tag[9:-4]+"") tags_header += "
" try: