Fix a bug with the greentexts
This commit is contained in:
parent
3aaf5fb4aa
commit
538998b43b
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ def generate_html(f):
|
|||
output += '</div>'
|
||||
output = output.split('\n')
|
||||
for i in range(len(output)):
|
||||
output[i] = re.sub('^(>[^\n]*(<br>|</div>))', '<span class="greentext">\\1</span>\n', output[i])
|
||||
output[i] = re.sub(r'^(>(.*?)(<br>|</div>))', r'<span class="greentext">\1</span>', output[i])
|
||||
output[i] = re.sub(r'^<blockquote class="message">(>(.*?)(<br>|</div>))', r'<blockquote class="message"><span class="greentext">\1</span>', output[i])
|
||||
output = '\n'.join(output)
|
||||
|
||||
return output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue