mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-03-25 03:31:53 +00:00
[svn r8063] Converted <p> tags to wiki style "\n\n"
Tidied header
This commit is contained in:
parent
c496000d97
commit
d5f15a98e2
@ -1,12 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('C:\\Expo\\expoweb\\troggle\\')
|
|
||||||
import settings
|
import settings
|
||||||
import expo.models as models
|
import expo.models as models
|
||||||
import csv
|
import csv
|
||||||
import time
|
import time
|
||||||
|
|
||||||
#import sqlite3
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -88,8 +86,9 @@ def html_to_wiki(text):
|
|||||||
#if s:
|
#if s:
|
||||||
# print s.groups()
|
# print s.groups()
|
||||||
#Lists
|
#Lists
|
||||||
text = re.sub("^</p>(.*)", r"\1", text)
|
text = re.sub("</p>", r"", text)
|
||||||
text = re.sub("(.*)<p>$", r"\1", text)
|
text = re.sub("<p>$", r"", text)
|
||||||
|
text = re.sub("<p>", r"\n\n", text)
|
||||||
out = ""
|
out = ""
|
||||||
lists = ""
|
lists = ""
|
||||||
while text:
|
while text:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user