Skip to content

Commit c70d383

Browse files
author
Jason Ward
committed
refs #28: update the parser
1 parent 80ffdf5 commit c70d383

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pydocx/parsers/Docx2Html.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ def unordered_list(self, text):
109109
}
110110

111111
def bold(self, text):
112-
return '<b>' + text + '</b>'
112+
return '<strong>' + text + '</strong>'
113113

114114
def italics(self, text):
115-
return '<i>' + text + '</i>'
115+
return '<em>' + text + '</em>'
116116

117117
def underline(self, text):
118-
return '<u>' + text + '</u>'
118+
return '<span style="text-decoration: underline">' + text + '</span>'
119119

120120
def tab(self):
121121
# Insert before the text right?? So got the text and just do an insert
@@ -142,7 +142,7 @@ def table_cell(self, text, col='', row=''):
142142
}
143143

144144
def page_break(self):
145-
return '<hr>'
145+
return '<hr />'
146146

147147
def indent(self, text, just='', firstLine='', left='', right=''):
148148
slug = '<div'
@@ -167,4 +167,4 @@ def indent(self, text, just='', firstLine='', left='', right=''):
167167
}
168168

169169
def break_tag(self):
170-
return '<br/>'
170+
return '<br />'

0 commit comments

Comments
 (0)