Tuesday, January 5, 2016

Re: html_expand_tabs Help Text

On Tuesday, January 5, 2016 at 1:13:36 PM UTC-6, Ben Fritz wrote:
> On Tuesday, January 5, 2016 at 8:10:05 AM UTC-6, Yongwei Wu wrote:
> > Hi Bram,
> >
> > I saw this while checking TOhtml details:
> >
> > *g:html_expand_tabs*
> > Default: 1 if 'tabstop' is 8, 'expandtab' is 0, and no fold column or line
> > numbers occur in the generated HTML;
> > 0 otherwise.
> > When 0, <Tab> characters in the buffer text are replaced with an appropriate
> > number of space characters, or &nbsp; references if |g:html_no_pre| is 1.
> > When 1, if |g:html_no_pre| is 0 or unset, <Tab> characters in the buffer text
> > are included as-is in the generated HTML. This is useful for when you want to
> > allow copy and paste from a browser without losing the actual whitespace in
> > the source document. Note that this can easily break text alignment and
> > indentation in the HTML, unless set by default.
> >
> > Force |2html.vim| to keep <Tab> characters: >
> > :let g:html_expand_tabs = 0
> > <
> > Force tabs to be expanded: >
> > :let g:html_expand_tabs = 1
> > <
> >
> > It seems to me the help text is wrong and conflicts with the examples.
> > Is it a bug?
> >
> >
>
> Oops, that's typo in help text. This option is supposed to mimic Vim's expandtab option. The help text reverses the meaning and also the default value logic.
>
> I think I may have originally had the option called "keeptab" or something like that and did not fully update the help text.

I just remembered I have a bug tracker now. I added it:

https://bitbucket.org/fritzophrenic/vim-tohtml/issues/2

I'll try to find some time to work on TOhtml again over the next few weeks.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: