コード例 #1
0
 def spaceCompress(text):
     try:
         text = unicode(text, 'utf-8')
     except TypeError:
         text = unicode(text)
     if not g.compress_whitespace:
         return text
     return uspace_compress(text)
コード例 #2
0
ファイル: filters.py プロジェクト: astraelly/reddit
 def spaceCompress(text):
     try:
         text = unicode(text, 'utf-8')
     except TypeError:
         text = unicode(text)
     return uspace_compress(text)
コード例 #3
0
 def spaceCompress(text):
     try:
         text = unicode(text, 'utf-8')
     except TypeError:
         text = unicode(text)
     return uspace_compress(text)