[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

536.0. "problems with <code_example> and <p>" by IJSAPL::KLERK (Theo de Klerk) Fri Jun 19 1987 18:31

1. 
 I've found that using <code_example> inside a <le> list element
 results in losing proper list indentation: the remainder of the
 text following <endcode_example> starts in the left margin instead
 of aligning with the rest of the <le> body.

2.
 Using <p> doesn't always result in a blank line between paragraphs.
 I haven't seen any regularity, but every so often Document just ignores
 it between two paragraphs of ordinary text.


It's getting summer (though you would not say so in Europe), so do
we get more bugs?

Theo

T.RTitleUserPersonal
Name
DateLines
536.1try theseCLOSET::ANKLAMSun Jun 21 1987 19:1924
    
    Without seeing the context in which you are using these tags I suspect
    that 
    
    1. there is no <cp> or <P> tag following the <endcode_example> inside
       the list element. This would cause the text to shift left. (Also
       for the record: <cp> is a better tag to use following examples
       or lists when the text that follows relates directly to a comment.
       It will keepa page from breaking between the example and the
       list that follows.
    
    2. Paragraph spacing is lost, consistently in the following:
    
       <head>(Heading)
        text that follows the heading.
       <p>Next paragraph.
    
       The space from this <p> is lost because there is not a <p>  
         after the <head1>.
    
       Is that the circumstance?
    
    patti
    
536.2Right on!IJSAPL::KLERKTheo de KlerkMon Jun 22 1987 05:1021
Patti, re. your suggestions:

>    1. there is no <cp> or <P> tag following the <endcode_example> inside
>       the list element. 

This is indeed the case. I wonder however, whether this behaviour should be
considered "a feature": text should be resume previous aligning when an
environment such as <code_example> ends.

>    2. Paragraph spacing is lost, consistently in the following:
>       The space from this <p> is lost because there is not a <p>  
>         after the <head1>.

True again. Should the <headx> tag not make a free standing heading, where
<P>'s are not needed to separate heading and text even further? It sounds
to me that <head> and <p> seem to have a pathological link (i.e. an unwanted
one)

I'll keep your suggested "workarounds" in mind. Thanks.

Theo
536.3Tag that ElementCUPOLA::HAKKARAINENwith hasty reverenceMon Jun 22 1987 09:296
    We cannot presume an implicit <p> after heads. Quite often, the item
    that follows a head is not a paragraph at all, but a list, a table, a
    figure, etc. While we might need to introduce such features in a
    template (``A paragraph of text must always follow <headx>.''), it
    would be inappropriate to change the behavior of global tags such as
    heads.
536.4<list> causes an end to the preceding <p>VAXUUM::KOHLBRENNERMon Jun 22 1987 10:0815
    You are thinking of the list or code-example as "buried" within
    the paragraph, hence it is natural to assume that the text that
    follows the endlist or endcode-example is "more of" the paragraph
    text.
    
    But the code-example and list tags "end" the paragraph.  What
    follows the endcode-example or endlist tag thus needs to be
    labelled with a tag.
    
    If we had <endp> tags, it would be clear to you and to the tag
    translator where the end of the paragraph was.  But I don't think
    anyone would stand for typing <endp> tags!
    
    bill