diff --git a/daemon.py b/daemon.py index 7e23d07f..2ef5b341 100644 --- a/daemon.py +++ b/daemon.py @@ -1650,12 +1650,14 @@ class PubServer(BaseHTTPRequestHandler): msg = '' with open(followingFilename, 'r') as followingFile: msg = followingFile.read() - followingList = msg.split('\n').sort() - print('followingList: ' + str(followingList)) + followingList = msg.split('\n') + followingList.sort() if followingList: followingListHtml = '' for followingAddress in followingList: - followingListHtml += '

' + followingAddress + '

' + if followingAddress: + followingListHtml += \ + '

' + followingAddress + '

' followingListHtml += '' msg = followingListHtml self._login_headers('text/html', len(msg), callingDomain)