Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Description will now be equal to the wikitext of the page, minus head…

…ers and newlines (fix #28)
  • Loading branch information...
commit ddab3946c44f47696198eab98048295e9e91fb96 1 parent c5d75b5
@theopolisme authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  selfimages.py
View
3  selfimages.py
@@ -39,7 +39,8 @@ def process_page(page):
contents = page.edit()
if contents != "":
- description = contents.split('==')[0].replace('\n',' ')
+ description = re.sub(r"==(.*?)==","",contents,flags=re.U|re.DOTALL)
+ description = description.replace('\n',' ').strip()
else:
description = ""
Please sign in to comment.
Something went wrong with that request. Please try again.