W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: Empty paragraphs

From: Ignacio Vazquez-Abrams <ignacio@openservices.net>
Date: Tue, 4 Sep 2001 14:19:29 -0400 (EDT)
To: "html-tidy@w3.org" <html-tidy@w3.org>
Message-ID: <Pine.LNX.4.33.0109041417560.726-100000@terbidium.openservices.net>
On Tue, 4 Sep 2001, Lee Passey wrote:

> Re-reading my previous response I believe I could be a little more clear
> about my motivations.  The problem is caused by (gasp!) Microsoft Word
> 2000!  If I create a Word 2000 document that contains a double space
> between certain paragraphs, when creating its bloated and inappropriate
> HTML Word represents the empty line as a paragraph with a single
> non-breaking space.  My goal is to tidy this to a break (<br />) instead
> of an (almost) empty paragraph.

What about putting it through sed?

  tidy ... | sed -e 's/<p>&nbsp;<\/p>/<br \/>/g' > output.html

Ignacio Vazquez-Abrams  <ignacio@openservices.net>
Received on Tuesday, 4 September 2001 14:19:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC