~stefanor/ibid/timeout-344882

« back to all changes in this revision

Viewing changes to ibid/plugins/info.py

  • Committer: Stefano Rivera
  • Date: 2009-03-14 11:12:28 UTC
  • mfrom: (570.1.1 fortune-340105)
  • Revision ID: stefano@rivera.za.net-20090314111228-ywypn3o3j3o5uwk4
Clean up fortune output
https://code.edge.launchpad.net/~stefanor/ibid/fortune-340105/+merge/4344

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        code = fortune.wait()
39
39
 
40
40
        output = unicode_output(output.strip())
 
41
        output = output.replace(u'\t', u' ').replace(u'\n', u' ')
41
42
 
42
43
        if code == 0:
43
44
            return output