[DEV] better display
This commit is contained in:
@@ -48,7 +48,7 @@ def transcode(value):
|
||||
value,
|
||||
flags=re.DOTALL)
|
||||
|
||||
value = re.sub(r'\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]',
|
||||
value = re.sub(r'\[color=(\(#[0-9A-F]{6}|[a-z\-]+|.+?)\](.*?)\[/color\]',
|
||||
r'<span style="color: \1;">\2</span>',
|
||||
value,
|
||||
flags=re.DOTALL)
|
||||
@@ -83,6 +83,11 @@ def transcode(value):
|
||||
value,
|
||||
flags=re.DOTALL)
|
||||
|
||||
value = re.sub(r'\[pre\]((\\\[|\\\]|.)*?)\[/pre\]',
|
||||
r'<br/><pre>\1</pre>',
|
||||
value,
|
||||
flags=re.DOTALL)
|
||||
|
||||
value = re.sub(r'\[note\](.*?)\[/note\]',
|
||||
r'<br/><b>Note:</b><pre>\1</pre>',
|
||||
value,
|
||||
|
Reference in New Issue
Block a user