Skip to content

Commit 8af55e5

Browse files
author
Jason Ward
committed
refs #30: no longer adding invalid attributes to insert and delete tags
1 parent d568390 commit 8af55e5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pydocx/parsers/Docx2Html.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def heading(self, text, heading_value):
5454

5555
def insertion(self, text, author, date):
5656
return (
57-
"<span class='pydocx-insert' author='%(author)s' "
58-
"date='%(date)s'>%(text)s</span>"
57+
"<span class='pydocx-insert'>%(text)s</span>"
5958
) % {
6059
'author': author,
6160
'date': date,
@@ -88,8 +87,7 @@ def image(self, path, x, y):
8887

8988
def deletion(self, text, author, date):
9089
return (
91-
"<span class='pydocx-delete' author='%(author)s' "
92-
"date='%(date)s'>%(text)s</span>"
90+
"<span class='pydocx-delete'>%(text)s</span>"
9391
) % {
9492
'author': author,
9593
'date': date,

0 commit comments

Comments
 (0)