Parsing Indented Text (like parsing Python)

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Sun Mar 11 09:21:24 EDT 2007


> 
> The problem is, how do I figure out how many spaces represent a tab? In one
> case, someone could have their editor configured to allow tabs to use 3
> spaces and the user could intermingle tabs and spaces. In other cases, a
> user might have their editor configured to have a tab equal 8 spaces yet
> also intermingle tabs and spaces. When a human looks at the document it is
> obvious the setting but how can I make it obvious to my program?  
then statistics can do it too.


-- 
cheers,
Stef Mientki
http://pic.flappie.nl



More information about the Python-list mailing list