Re: para termination

On 23 November 2012 15:06, Dave Pawson <dave.pawson@gmail.com> wrote:
> Given
> text\n\s\s\s\n
> more stuff
>
>
> where \s is a space character, \n a newline.
>
> Where does the para containing 'text' terminate? Is 'more stuff' a
> part of that para?
>
> Tested at http://johnmacfarlane.net/babelmark2/?text=para%0A++++%0Apara

Proposal, for the core profile.

\s+\n|\EOF be ignored  that is any sequence of white space followed by
newline or EOF.

I.e. A blank line on its own is normalized to nothing.

Can anyone see a use for retaining blank lines? Is it needed in any
output formats that you use or know of?

The alternative is to retain blank lines through to the output and let
the transform deal with them. Hence for HTML
they would not show.


regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Friday, 23 November 2012 16:00:20 UTC