diff --git a/webapp_moderation.py b/webapp_moderation.py index 5db54848b..1af0f315a 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -395,7 +395,11 @@ def html_moderation_info(css_cache: {}, translate: {}, blocking_filename = base_dir + '/accounts/blocking.txt' if os.path.isfile(blocking_filename): with open(blocking_filename, 'r') as fp_block: - blocked_str = fp_block.read() + blocked_lines = fp_block.readlines().sort() + blocked_str = '' + for line in blocked_lines: + line = line.replace('\n', '').replace('\r', '').strip() + blocked_str += line + '\n' info_form += '