It's more complicated than that. For simple documents, that would work, but it becomes much tougher once you start to use filters and so forth. For instance, in the following document:
%pre <TAB>:preserve <TAB><TAB>foo.o: foo.c foo.h <TAB><TAB><TAB>CC foo.c -o foo.o All the tabs should be converted to spaces - except the sixth, which needs to be available to the filter. How do you tell which tabs to preserve where? You practically need to parse the whole file. It's also not just an issue of whether we _can_ do it - Haml is designed to encourage the author to use good style. The most important aspect of style is consistency, and two-space-indentation is the standard in the Ruby community. - Nathan Kiril Angov wrote: > Hey guys, > > I was reading all the emails about using tabs vs spaces and I cannot > stop thinking that it is not a big deal if you read the tab from the > .haml file just convert it to 2 spaces and continue the logic. Or > before processing the whole file, replace all beginning tabs with two > spaces or three spaces or whatever. And yes it will add overhead but > people who want to use tabs will at least have an option to do it. > Isn't this possible? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
