whitespace = None
for line in lines:
if whitespace is None:
- match = re.match(r"^([ ]+)", line)
+ match = re.match(r"^([ ]*).+", line)
if match is not None:
whitespace = match.group(1)
<div id="<% name %>_div" class="<% class_ %>" style="display:none;"><% m.content().strip() %></div>
</%method>
-
-<%method codepopper trim="both">
+<%method poplink trim="both">
<%args>
- link
+ link='sql'
</%args>
<%init>
href = m.scomp('SELF:popboxlink')
</%init>
'''PYESC<& SELF:link, href=href, text=link, class_="codepoplink" &>PYESC'''
+</%method>
+
+<%method codepopper trim="both">
'''PYESC<&|SELF:popbox, class_="codepop" &><% m.content() %></&>PYESC'''
</%method>
width:auto;
}
-.code {
-}
-
-.codepop {
- font-weight:bold;
- font-family: verdana, sans-serif;
- font-size:12px;
- color:#000000;
- border:1px solid;
- padding:10px;
-}
-
-.codepoplink {
- font-weight:bold;
- font-family: verdana, sans-serif;
- font-size:11px;
- color:#000000;
- border:1px solid;
- padding:1px 2px 1px 2px;
- margin:0px 0px 0px 15px;
-}