@@ -24,12 +24,7 @@ def head(self):
24
24
}
25
25
26
26
def style (self ):
27
- return textwrap .dedent ('''<style>.insert{{color:red}}.delete
28
- {{color:red; text-decoration:line-through}}.center
29
- {{text-align:center}}.right{{text-align:right}}
30
- .left{{text-align:left}} .comment{{color:blue}}
31
- body{{width:%(width)spx; margin:0px auto;
32
- }}</style>''' ) % {
27
+ return textwrap .dedent ('<style>.insert {color:green;}.delete {color:red;text-decoration:line-through;}.center {text-align:center;}.right {text-align:right;}.left {text-align:left;}.comment {color:blue;}body {width:0px;margin:0px auto;}</style>' ) % { # noqa
33
28
'width' : (self .page_width * (4 / 3 )),
34
29
}
35
30
#multiple by (4/3) to get to px
@@ -99,8 +94,9 @@ def list_element(self, text):
99
94
}
100
95
101
96
def ordered_list (self , text , list_style ):
102
- return " <ol>%(text)s</ol>" % {
97
+ return ' <ol list-style-type="%(list_style)s" >%(text)s</ol>' % {
103
98
'text' : text ,
99
+ 'list_style' : list_style ,
104
100
}
105
101
106
102
def unordered_list (self , text ):
@@ -123,7 +119,7 @@ def tab(self):
123
119
return '    '
124
120
125
121
def table (self , text ):
126
- return '<table border=1 >' + text + '</table>'
122
+ return '<table border="1" >' + text + '</table>'
127
123
128
124
def table_row (self , text ):
129
125
return '<tr>' + text + '</tr>'
0 commit comments