[Tutor] detab to delouse before de numbers go in (groan)
Kirk Bailey
idiot1@netzero.net
Sun May 18 22:26:35 2003
ok, files using taqbs confuse composition software. So we pull them out and insert
spaces instead.
def removetabs(string1):
outstring=''
for x in string1:
if x=='\t':
x=' '
outstring=outstring+x
return outstring
read in a file you wish to add line numbers to into a list variable, and walk the list
with this routine. THEN do the line numbering ritual with full viking garb and chorus.
AND DON'T NUMBER LINE 1!!!!!!!!!!!
--
end
Respectfully,
Kirk D Bailey
+------------------------------------------------------------+
| Owner Howler Monkey Email: http://www.howlermonkey.net/ |
| Inventor of TinyList list server: http://www.tinylist.org/ |
| Consulting freestyle Grump: http://www.sacredelectron.org/ |
| Remember: When we referr to FREE software, we are talking |
| about FREEDOM, not $PRICE$. |
+------------------------------------------------------------+