Re: Getting a text file rid of all superfluous blank lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-11-30 at 15:01 +0000, Paul Smith wrote:
> Rodolfo's technique works fine for me. It reduced about
> 40Kb of a HTML document produced by NVU. I do not know why, but NVU
> seems to add blocks of blank lines, drastically increasing the size of
> the document.

NVU adds 40Kb to a file just from blank lines?  40,000 blank lines?  How
big's the document, overall?

Personally, I use tidy on HTML files.  Though you have to use it with
some care.  It'll remove   character entities if they're ANYWHERE
on the page in or *after* a PRE element.  And mangles some other
character entities, too (e.g. × can get translated into garbage).
If I know I haven't used them in a document, I'll use tidy on it.  It
also tidies up a few silly authoring errors (like not closing p tags,
etc.).

-- 
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux