Skip to content

Commit

Permalink
Description will now be equal to the wikitext of the page, minus head…
Browse files Browse the repository at this point in the history
…ers and newlines (fix #28)
  • Loading branch information
theopolisme committed Jul 2, 2013
1 parent c5d75b5 commit ddab394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfimages.py
Expand Up @@ -39,7 +39,8 @@ def process_page(page):
contents = page.edit() contents = page.edit()


if contents != "": if contents != "":
description = contents.split('==')[0].replace('\n',' ') description = re.sub(r"==(.*?)==","",contents,flags=re.U|re.DOTALL)
description = description.replace('\n',' ').strip()
else: else:
description = "" description = ""


Expand Down

0 comments on commit ddab394

Please sign in to comment.