Wednesday, July 28, 2010

Re: Should 2html generate valid CSS by default?

On Thu, July 29, 2010 3:24 am, Benjamin Fritz wrote:
> On Wed, Jul 28, 2010 at 3:39 PM, Bram Moolenaar <Bram@moolenaar.net>
> wrote:
>>
>> The documentation clearly says:
>>
>> By default, HTML optimized for old browsers is generated. If you prefer
>> using
>> cascading style sheets (CSS1) for the attributes (resulting in
>> considerably
>> shorter and valid HTML 4 file), use: >
>> :let g:html_use_css = 1
>>
>> We can change that to default to using CSS when the variable isn't set
>> and tell users to use this to disable that:
>>
>> :let g:html_use_css = 0
>>
>> Any problems with that?
>>
>
> Well...it would be inconsistent with the other options, which will
> remain enabled even if you :let them to zero. If I change this one, I
> will want to change all options to work the same way. Each would do as
> one might expect when :let to either zero or 1, with a default
> behavior noted in the :help when they are not defined at all.

I don't think this is a problem, as long as this is mentioned in the help.
Definitely I wouldn't introduce a second variable, as this makes the
script more complicated and would only confuse users.

regards,
Christian

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: