[Assorted-commits] SF.net SVN: assorted: [870] shell-tools/trunk/src/tabs2bullets.py
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-07-03 19:52:02
|
Revision: 870 http://assorted.svn.sourceforge.net/assorted/?rev=870&view=rev Author: yangzhang Date: 2008-07-03 12:51:47 -0700 (Thu, 03 Jul 2008) Log Message: ----------- added tabs2bullets (similar to bullets.hs) Added Paths: ----------- shell-tools/trunk/src/tabs2bullets.py Added: shell-tools/trunk/src/tabs2bullets.py =================================================================== --- shell-tools/trunk/src/tabs2bullets.py (rev 0) +++ shell-tools/trunk/src/tabs2bullets.py 2008-07-03 19:51:47 UTC (rev 870) @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +from re import compile, sub +from sys import stdin + +for line in stdin: + p = compile( r'^\t*' ) + m = p.match( line ) + line = line[ m.end() : ] + print ' ' * m.end() + '-', line, Property changes on: shell-tools/trunk/src/tabs2bullets.py ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |