diff --git a/webinterface.py b/webinterface.py index d159e907..0e18e350 100644 --- a/webinterface.py +++ b/webinterface.py @@ -69,6 +69,7 @@ from happening import thisWeeksEventsCheck from happening import getCalendarEvents from happening import getTodaysEvents from git import isGitPatch +from git import gitFormatContent def updateAvatarImageCache(session, baseDir: str, httpPrefix: str, @@ -3977,7 +3978,11 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, postJsonObject['object']['content']): contentStr = '
' + contentStr + '
' else: - contentStr = '
' + contentStr + '
' + patchStr = gitFormatContent(postJsonObject['object']['content']) + contentStr = \ + '
' + \ + patchStr.replace('\n','
') + \ + '
' postHtml = '' if boxName != 'tlmedia':