On 3/31/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-03-31 at 10:59 +0800, Russell Keith-Magee wrote: > [...] > > 1) Is there a valid use case out there for the default 'leave 1 space' > > behaviour that I am missing? > > Readability of the generated source is not to be sneezed at. Using the > spaceless tag, you can have a nicely laid out template source with > newlines in appropriate places, etc, and still have a nice compact (not > spread over all creation) readable generated HTML. So I think the answer > to this question is "yes".
Fair point, although I would argue that human readability of HTML delivered to the browser is a pretty low priority. I do have a specific counter-example where 0-spaces is significant. This HTML: <ul> <li>foo</li> <li>bar</li> </ul> is just as (if not more readable) than: <ul> <li>foo</li> <li>bar</li> </ul> but will render on Firefox exactly the same, but: <ul><li>foo</li><li>bar</li></ul> while slightly less readable, will render differently if the li's have css display:inline (as you would to display a list of menu items. The existence of a space (regardless of the number) changes the interpretation of layout. This may be a browser quirk, but it's a real one that people have to deal with. > > 3) Whatever the default value is, is there a need for configurability > > of the number of spaces provided by this tag? Ok - initial opinion appears to be anti configurability and anti changing the default. Another option is to introduce a different tag for the 0-spaces case. Opinions? Suggestions for names? Spaceless is the obvious choice, but that name is taken :-) Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---