[svn r8063] Converted <p> tags to wiki style "\n\n"

Tidied header
This commit is contained in:
julian 2008-11-07 00:29:38 +01:00
parent c496000d97
commit d5f15a98e2

View File

@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
import sys
sys.path.append('C:\\Expo\\expoweb\\troggle\\')
import settings
import expo.models as models
import csv
import time
#import sqlite3
import re
import os
@ -88,8 +86,9 @@ def html_to_wiki(text):
#if s:
# print s.groups()
#Lists
text = re.sub("^</p>(.*)", r"\1", text)
text = re.sub("(.*)<p>$", r"\1", text)
text = re.sub("</p>", r"", text)
text = re.sub("<p>$", r"", text)
text = re.sub("<p>", r"\n\n", text)
out = ""
lists = ""
while text: