Skip to content
This repository has been archived by the owner on Oct 7, 2018. It is now read-only.

Commit

Permalink
Removed whitespace before XML declaration in RSS feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisaphone committed Jun 14, 2012
1 parent 01e3e32 commit 6fddb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/lib/filters.py
Expand Up @@ -51,7 +51,7 @@ def python_websafe_json(text):
c_websafe_json = python_websafe_json
_spaces = re.compile(r'(\s)\s+', re.VERBOSE)
def spaceCompress(content):
return _spaces.sub(r'\1', content)
return _spaces.sub(r'\1', content.strip())

class _Unsafe(unicode): pass

Expand Down

0 comments on commit 6fddb77

Please sign in to comment.