X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=geekigeeki.py;h=83a8e8fb0a1fc48e2025cdb0f5778811f47a3a31;hb=a3a73bb562bbec93daf73c51446d131eb1553477;hp=e7d7f7d69e63c915c3c3526b5acdcf1307f20733;hpb=ad79f3880dad5a6fcc8529d682c263f74c959847;p=geekigeeki.git
diff --git a/geekigeeki.py b/geekigeeki.py
index e7d7f7d..83a8e8f 100755
--- a/geekigeeki.py
+++ b/geekigeeki.py
@@ -120,21 +120,18 @@ def send_guru(msg_text, msg_type):
print(cgi.escape(msg_text))
if msg_type == 'error':
print '\n Guru Meditation #DEADBEEF.ABADC0DE'
- print('' \
+ print('' \
% relative_url('sys/GuruMeditation.js'))
def send_title(name, text="Limbo", msg_text=None, msg_type='error', writable=False, mtime=None):
global title_done
if title_done: return
- # Head
+ # HEAD
emit_header(mtime)
- print('')
- print('')
-
+ print('\n')
print("
%s: %s" % (config_get('site_name', "Unconfigured Wiki"), text))
- print(' ')
+ print(' ')
if not name:
print(' ')
@@ -157,7 +154,7 @@ def send_title(name, text="Limbo", msg_text=None, msg_type='error', writable=Fal
print('')
- # Body
+ # BODY
if editable:
print('')
else:
@@ -166,8 +163,8 @@ def send_title(name, text="Limbo", msg_text=None, msg_type='error', writable=Fal
title_done = True
send_guru(msg_text, msg_type)
- # Navbar
- print('')
+ # NAVBAR
+ print('
')
def send_httperror(status="403 Not Found", query=""):
print("Status: %s" % status)
@@ -205,7 +202,7 @@ def link_tag(dest, text=None, privileged=False, **kvargs):
if text is None:
text = humanlink(dest)
elif image_re.match(text):
- text = ''
+ text = ''
link_class = kvargs.get('class', kvargs.get('cssclass', None))
if not link_class:
@@ -388,7 +385,6 @@ class WikiFormatter:
",,": ["sub", False],
"''": ["em", False], # LEGACY
"'''": ["b", False], # LEGACY
- "``": ["tt", False], # LEGACY
}
def _b_repl(self, word):
@@ -552,7 +548,7 @@ class WikiFormatter:
scan_re = re.compile(r"""(?:
# Styles and formatting ("--" must cling to a word to disambiguate it from the dash)
- (?P \*\* | // | \#\# | __ | --\b | \b-- | \^\^ | ,, | ''' | '' | `` )
+ (?P \*\* | // | \#\# | __ | --\b | \b-- | \^\^ | ,, | ''' | '' )
| (?P \={2,6})
| (?P
\\\\)
| (?P ^-{3,})