diff --git a/webinterface.py b/webinterface.py
index 1697869f..51a09565 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1126,6 +1126,8 @@ def individualPostAsHtml(baseDir: str, \
'' \
'\n'
attachmentCtr+=1
+ if attachmentCtr>0:
+ attachmentStr+='
'
if not avatarUrl:
avatarUrl=getPersonAvatarUrl(baseDir,postJsonObject['actor'],personCache)