| 207 | return "<font color=\"green\">%s</font>" % data |
| 208 | |
| 209 | def PrintHeader(self): |
| 210 | data = """<html> |
| 211 | <head> |
| 212 | <title>Output</title> |
| 213 | <style type="text/css"> |
| 214 | /* |
| 215 | Style inspired by Andy Ferra's gist at https://gist.github.com/andyferra/2554919 |
| 216 | */ |
| 217 | body { |
| 218 | font-family: Helvetica, arial, sans-serif; |
| 219 | font-size: 14px; |
| 220 | line-height: 1.6; |
| 221 | padding-top: 10px; |
| 222 | padding-bottom: 10px; |
| 223 | background-color: white; |
| 224 | padding: 30px; |
| 225 | } |
| 226 | h1, h2, h3, h4, h5, h6 { |
| 227 | margin: 20px 0 10px; |
| 228 | padding: 0; |
| 229 | font-weight: bold; |
| 230 | -webkit-font-smoothing: antialiased; |
| 231 | cursor: text; |
| 232 | position: relative; |
| 233 | } |
| 234 | h1 { |
| 235 | font-size: 28px; |
| 236 | color: black; |
| 237 | } |
| 238 | |
| 239 | h2 { |
| 240 | font-size: 24px; |
| 241 | border-bottom: 1px solid #cccccc; |
| 242 | color: black; |
| 243 | } |
| 244 | |
| 245 | h3 { |
| 246 | font-size: 18px; |
| 247 | } |
| 248 | |
| 249 | h4 { |
| 250 | font-size: 16px; |
| 251 | } |
| 252 | |
| 253 | h5 { |
| 254 | font-size: 14px; |
| 255 | } |
| 256 | |
| 257 | h6 { |
| 258 | color: #777777; |
| 259 | font-size: 14px; |
| 260 | } |
| 261 | |
| 262 | p, blockquote, ul, ol, dl, li, table, pre { |
| 263 | margin: 15px 0; |
| 264 | } |
| 265 | |
| 266 | li p.first { |