Next in thread → Next in month →

Re: [docbook-apps] Callout Bug breaks lines in <programlisting>

From
"Cob Rtayton"
Date
2010-10-19T06:25:47+00:00
ID
01d601cb6f56$6f3b29d0$6600a8c0@pazu
Thread
Re: [docbook-apps] Callout Bug breaks lines in <programlisting>
Hi,

Most likely this is caused by having this in your 
xsl:

 

<xsl:output indent="yes"/>

 

This introduces extra line breaks, sometimes where 
not wanted.  Setting it to "no" makes the FO harder to read, but more 
accurate.  If this does not fix the problem, then something else is going 
on.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  Speights, Scott 

  
To:  
  

  
Sent: Monday, October 18, 2010 6:01 
  AM

  
Subject: [docbook-apps] Callout Bug 
  breaks lines in <programlisting>

  

  
Hello List, 

  
I would 
  like to use callouts to mark up code examples but when I put callout bugs into 
  the program listing, they do a line break. I expected the bugs to appear at the 
  end of a line of code without breaking. Is there  something that I need to 
  customize – or not customize - here to prevent this line break from 
  happening. 

  
My environment is Oxygen XML, 
  Saxon 6.5.5 and FOP 1.0 and I am using Unicode callouts. XML and XSL 
  samples.

  
<! – 
  XML à

  
<programlisting>

public void 
  SimpleGet()
{

  
    
  IList&lt;ICompanyDescription> 
  companyDescriptions = connector.CompanyDescriptions; 
  <co 
  xml:id="IAtomLoadCoList" linkends="LoadGetList"/>

  
<!—XSL à

  
<xsl:attribute-set name="monospace.verbatim.properties">
    <xsl:attribute name="font-family">Lucida Sans 
  Typewriter</xsl:attribute>
    
  <xsl:attribute name="font-size">9pt</xsl:attribute>
    
  <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
    <xsl:attribute name="line-height">11pt</xsl:attribute>
    
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
    
  <xsl:attribute name="start-indent">0mm</xsl:attribute>
    
  <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
    <xsl:attribute name="wrap-option">wrap</xsl:attribute>
  
  </xsl:attribute-set>

  

  
Many Thanks, 

  
Scott 

  
Scott 
  Speights

  
Technical 
  Writer

  
--------------------------------------------------------------

  
Haufe-Lexware GmbH & 
  Co. KG

  
Munzinger Str. 9, D-79111 Freiburg

  
Tel. +49 761 
  898-5313

  
E-Mail: 
  

  
Internet: http://www.haufe-lexware.com

  
--------------------------------------------------------------

  
Kommanditgesellschaft, Sitz und Registergericht Freiburg, HRA 
  4408

  
Komplementäre: Haufe-Lexware Verwaltungs GmbH,

  
Sitz und 
  Registergericht Freiburg, HRB 5557; Martin Laqua

  
Geschäftsführung: Isabel Blank, Birte Hackenjos, Jörg Frey, 
  

  
Matthias 
  Mühe, Markus Reithwiesner, Joachim Rotzinger, Dr. Carsten Thies 
  

  
Beiratsvorsitzende: Andrea Haufe
Next in thread → Next in month →