|
|
@ -1,7 +1,11 @@ |
|
|
|
#!/usr/bin/env python |
|
|
|
#!/usr/bin/env python |
|
|
|
|
|
|
|
|
|
|
|
from __future__ import print_function |
|
|
|
from __future__ import print_function |
|
|
|
import sys, re, os.path, cgi, stat, math |
|
|
|
import sys, re, os.path, stat, math |
|
|
|
|
|
|
|
try: |
|
|
|
|
|
|
|
from html import escape |
|
|
|
|
|
|
|
except ImportError: |
|
|
|
|
|
|
|
from cgi import escape # Python 2.7 |
|
|
|
from optparse import OptionParser |
|
|
|
from optparse import OptionParser |
|
|
|
from color import getColorizer, dummyColorizer |
|
|
|
from color import getColorizer, dummyColorizer |
|
|
|
|
|
|
|
|
|
|
@ -23,7 +27,7 @@ class tblRow(object): |
|
|
|
self.props = props |
|
|
|
self.props = props |
|
|
|
|
|
|
|
|
|
|
|
def htmlEncode(str): |
|
|
|
def htmlEncode(str): |
|
|
|
return '<br/>'.join([cgi.escape(s) for s in str]) |
|
|
|
return '<br/>'.join([escape(s) for s in str]) |
|
|
|
|
|
|
|
|
|
|
|
class table(object): |
|
|
|
class table(object): |
|
|
|
def_align = "left" |
|
|
|
def_align = "left" |
|
|
|