Commits

Anonymous committed 65b5b3b

removed hard-coded style from <ins> and <del>

  • Participants
  • Parent commits b1c0758

Comments (0)

Files changed (1)

File python2/diff_match_patch/diff_match_patch.py

       text = (data.replace("&", "&amp;").replace("<", "&lt;")
                  .replace(">", "&gt;").replace("\n", "&para;<br>"))
       if op == self.DIFF_INSERT:
-        html.append("<ins style=\"background:#e6ffe6;\">%s</ins>" % text)
+        html.append("<ins>%s</ins>" % text)
       elif op == self.DIFF_DELETE:
-        html.append("<del style=\"background:#ffe6e6;\">%s</del>" % text)
+        html.append("<del>%s</del>" % text)
       elif op == self.DIFF_EQUAL:
         html.append("<span>%s</span>" % text)
     return "".join(html)