On 2013-08-05, Andy Wokula wrote: > Am 05.08.2013 09:01, schrieb Gary Johnson:
> >I started looking for examples of indentation that I didn't like in > >my HTML files. Then I looked in the indent/html.vim plugin and > >discovered that it had changed a lot since the last time I tried > >tuning it. I found that I could fix all the indentation issues by > >putting this in my ~/.vimrc: > > > > let g:html_indent_inctags = "body,html,head,p,tbody" > > > >With that, the indentation now looks great. > > Ok. If it works, this means you are always putting the closing tag. > But the end tag for BODY, HTML, P, TBODY (and a few others) is optional. > I want to add support for missing closing tags, but I wonder if it's > worth the effort. I always use the end tag for BODY, HTML and TBODY, but I only sometimes use the end tag for P. That did cause an indentation problem for some of my paragraphs when using your plugin, but I decided that now, some years after writing those files, I prefer using the end tag for P as well. It's not that much effort and it just looks cleaner. I did look in your plugin for a way to make the </P> tag optional. I suppose that would be nice, but it's no longer an issue for me. Regards, Gary -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
