Re: Getting a NewLine

Subject: Re: Getting a NewLine
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Tue, 21 Apr 1998 14:15:44 -0400 (EDT)
At 21 Apr 1998 13:28 -0400, Chuck Darney wrote:
 > Does anyone have a suggestion for getting a new line in the document? 
 > When the markup is reached, I want to force a line break with the same
 > spacing as if the text wrapped at the end of the line.  I currently do:
 > 
 > (element LF
 >   (make paragraph
 >       line spacing: .1pt
 >       (make sequence
 >          (literal " ")
 >          (process-children)))
 > 
 > This worked until I added the "min-leading" characteristic to solve
 > another problem.  Does anyone else have a suggestion for getting the
 > effect of a "return"?

Use a paragraph-break flow object.

A paragraph-break flow object is allowed only in paragraph flow
objects.

The standard states "All the characteristics that are applicable to a
paragraph flow object are also applicable to a paragraph-break flow
object".  With Jade, and contrary to my expectation, this means *all*
the characteristics of the containing paragraph flow object, including
the otherwise non-inherited space-before and space-after
characteristics, are inherited by a paragraph-break flow object.

When I want to use paragraph-break as you do, I use the enclosing
paragraph flow object within a display-group flow object, and I
specify the space-before and space-after on the display-group so
they're not "inherited" from the paragraph by the paragraph-break.

Regards,


Tony Graham
=======================================================================
Tony Graham
Mulberry Technologies, Inc.                         Phone: 301-315-9632
17 West Jefferson Street, Suite 207                 Fax:   301-315-8285
Rockville, MD USA 20850                 email: tgraham@xxxxxxxxxxxxxxxx
=======================================================================


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Getting a NewLine
    • Chuck Darney - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA22996Tue, 21 Apr 1998 13:35:22 -0400 (EDT)
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA23607Tue, 21 Apr 1998 14:18:59 -0400 (EDT) <=
      • <Possible follow-ups>
      • Pawson, David - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id DAA07242Wed, 22 Apr 1998 03:32:01 -0400 (EDT)
        • Tom Boudreau - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA11076Wed, 22 Apr 1998 10:38:36 -0400 (EDT)
          • Tom Boudreau - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA11300Wed, 22 Apr 1998 10:52:28 -0400 (EDT)
        • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA11923Wed, 22 Apr 1998 11:27:48 -0400 (EDT)