diff --git a/atdb/taskdatabase/services/algorithms.py b/atdb/taskdatabase/services/algorithms.py
index 512ec85484093f208ccfc4e32b28d8070157c2c8..ec93aaf8d45897e556c6c3d9aa62e42ebed9ffe5 100644
--- a/atdb/taskdatabase/services/algorithms.py
+++ b/atdb/taskdatabase/services/algorithms.py
@@ -771,8 +771,7 @@ def construct_summary(task):
                     line += '<th>Added</th>'
                     line += '<tr><td colspan="3">'
                     for filename in to_add:
-                        line += filename + '\n'
-                    line += '</td></tr>'
+                        line += '<tr><td colspan="3">' + filename + '<td</tr>'
             except:
                 pass
 
@@ -780,10 +779,9 @@ def construct_summary(task):
                 to_delete = record['deleted']
                 if to_delete:
                     line += '<th>Deleted</th>'
-                    line += '<tr><td colspan="3">'
                     for filename in to_delete:
-                        line += filename + '\n'
-                    line += '</td></tr>'
+                        line += '<tr><td colspan="3">' +filename + '<td</tr>'
+
             except:
                 pass