Next in thread → Next in month →

Re: [docbook-apps] Wrapped Line Indents

From
Bob Stayton <>
Date
2009-01-06T17:11:04+00:00
ID
00a501c97021$b8d617c0$6700a8c0@pazu
Thread
Re: [docbook-apps] Wrapped Line Indents
I solved this problem once by putting each line in 
its own fo:block and setting the margin-left on the block to match the indent of 
the current line.  Then if it has to wrap, it does so inside its 
block.  That's a solution on the FO side of things, but getting each line 
into an fo:block could be a challenge.   I was doing it for a 
programlisting with no embedded elements and parsing the text content 
recursively on the &#10; character (line ending).  With mixed text and 
elements, it gets harder to determine what constitutes a line to get the 
mix of text and elements into its own fo:block.

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Lillian 
  Sullam 

  
To:  
  

  
Sent: Tuesday, January 06, 2009 8:24 
  AM

  
Subject: [docbook-apps] Wrapped Line 
  Indents

  

Hi,

I'm converting JavaDoc output to DocBook using 
  dbdoclet and a customization XSLT.  The resulting DocBook formatting uses 
  object oriented tags. The <classsynopsis> tag holds all of the methods 
  and the methods are indented according to formatting from the DocBook 
  stylesheets.  My question is, if the line is too long in PDF output, and 
  I am wrapping it to the next line, how can I get the next line to indent as 
  well?  I am using docbook-xsl-ns-1.74.0 / Saxon / 
  XEP.

Thanks!

Lillian
Next in thread → Next in month →