Tidying SGML documents

Tom Rhodes trhodes at FreeBSD.org
Mon Jun 28 02:58:43 UTC 2004


On Sun, 27 Jun 2004 14:10:48 -0400
Joe Marcus Clarke <marcus at freebsd.org> wrote:

> I figure I'd ask before trying to clean these manually.  What sgml-fu do
> you guys use to tidy horrendously formatted website documents?  The
> GNOME docs are in pretty bad shape, and I've finally gotten fed up
> enough to fix them.
> 
> I'm a vim user, and found this sometime ago:
> 
> autocmd BufNewFile,BufRead *.sgml,*.ent,*.html,*.tex,*.xsl set
> autoindent formatoptions=tcq2l textwidth=70 shiftwidth=2 softtabstop=2
> tabstop=8
> 
> It works great for writing new documents, but I was hoping there was a
> nice automatic recipe for existing documents.  Thanks.

Manual labor.  :)

-- 
Tom Rhodes



More information about the freebsd-doc mailing list