[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

298.0. "Odd <ELLIPSIS> Behavior" by DECWET::CUSTER () Thu Apr 23 1987 15:11

    Here's an example of unexpected behavior with the <ELLIPSIS> tag.
    
    This is a code example that is indented one tab character from the left
    margin: 
    
	<CODE_EXAMPLE>
	<TAG>(SUBCOMMAND_SECTION)(utility name)
	<TAG>(SUBCOMMAND_SECTION_HEAD)(utility name QUALIFIERS)
	<TAG>(SET_TEMPLATE_SUBCOMMAND)(QUALIFIER)
	<ELLIPSIS>
	(<tag>(QUALIFER) subtemplate is inserted here once for each qualifier)
	<ELLIPSIS>
	<TAG>(ENDSUBCOMMAND_SECTION)(utility name)
	<ENDCODE_EXAMPLE>

    The output for this example contains funny-looking ellipses in both the
    GENERAL and SOFTWARE.REFERENCE doctypes.  The first dot in an ellipsis
    is not aligned with the other two.  It looks like this: 
    
    	 .
    	.
    	.
   
    
    But this modified version of the code example produces correct ellipses:
    
	<CODE_EXAMPLE>
	<TAG>(SUBCOMMAND_SECTION)(utility name)
	<TAG>(SUBCOMMAND_SECTION_HEAD)(utility name QUALIFIERS)
	<TAG>(SET_TEMPLATE_SUBCOMMAND)(QUALIFIER)
<ELLIPSIS>
	(<tag>(QUALIFER) subtemplate is inserted here once for each qualifier)
<ELLIPSIS>
	<TAG>(ENDSUBCOMMAND_SECTION)(utility name)
	<ENDCODE_EXAMPLE>

    
    It appears that putting a tab character before an ellipsis scoots
    the first dot over one character in the output.  
    
    
    	-Helen
T.RTitleUserPersonal
Name
DateLines
298.1tab = spaceVAXUUM::KOHLBRENNERThu Apr 23 1987 16:5912
    Tab characters get converted to single spaces.
    
    Putting a tab in a code-example is equivalent to
    putting a single space there.
    
    So you got the space on the line with the first dot,
    then the next two lines of dots were put out without
    the "indenting" that you did with the space (tab).
    
    Avoid tabs in examples.
    
    
298.2not tabs, I don't thinkCLOSET::ANKLAMThu Apr 23 1987 17:206
    
    It's not the tabs. It's a side effect of the environment of monospaced
    examples. It's not possible to tell, when someone enters an <ellipsis>
    tag, where the dots are to go. I will look at it. 
    
    
298.3Ellipsis in monospaced font/code_exampleRDCV01::FSLRob AldridgeWed Aug 19 1987 15:2028
<P>Just in case this matter has been forgotten, I thought bring
it up once more.  There *is* a problem with using ELLIPSIS in a
CODE_EXAMPLE that is not kept flush-left.

<P>Observe: (this sample was tested using Soft.Guide)

    
<CODE_EXAMPLE>

This example is
<ELLIPSIS>
flush left

<ENDCODE_EXAMPLE>

<CODE_EXAMPLE>

     This example is
     <ELLIPSIS>
     five characters from the left

<ENDCODE_EXAMPLE>


<P>
-Rob-