Re: cvs commit: xml-fop/test/layoutengine/testcases indent2.xml

2005-03-17 Thread Jeremias Maerki

On 17.03.2005 15:02:02 Andreas L. Delmelle wrote:
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 
 snip/
 
  fo:block text-indent=20pt text-align=justify
This is just for testing purpose and this line will be indented.
 
fo:blockThis is the nested block./fo:block
 
The text following the nested block should be indented as well.
 
 Errmm... Correction: The OP for the recent issue on fop-user claimed the
 exact opposite
 
 ...the text following the second block should not be indented since
 text-indent applies only to the first line of that block and not to any
 subsequent text in that block
 
 He did add, however, that he wasn't sure if this was as per spec.

I'm not sure either, to be honest. You could argue that after a nested
block you have a new block even if it's the same XML element creating
these two blocks. Either way, it's good to have a test case around that
reminds us about this issue. The checks still need to be written after
all...


Jeremias Maerki



Re: cvs commit: xml-fop/test/layoutengine/testcases indent2.xml

2005-03-17 Thread Simon Pepping
On Thu, Mar 17, 2005 at 04:05:12PM +0100, Jeremias Maerki wrote:
 
 On 17.03.2005 15:02:02 Andreas L. Delmelle wrote:
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  
  snip/
  
   fo:block text-indent=20pt text-align=justify
 This is just for testing purpose and this line will be indented.
  
 fo:blockThis is the nested block./fo:block
  
 The text following the nested block should be indented as well.
  
  Errmm... Correction: The OP for the recent issue on fop-user claimed the
  exact opposite
  
  ...the text following the second block should not be indented since
  text-indent applies only to the first line of that block and not to any
  subsequent text in that block
  
  He did add, however, that he wasn't sure if this was as per spec.
 
 I'm not sure either, to be honest. You could argue that after a nested
 block you have a new block even if it's the same XML element creating
 these two blocks. Either way, it's good to have a test case around that
 reminds us about this issue. The checks still need to be written after
 all...

I agree with the submitter of bug 34058. Later parts of a block should
not be indented. A clear use case is this:

block: The following formula
nested block: displayed formula
block continued: proves our point.

In this example, even the sentence continues, and should not be
indented. The same is true if the second part would start with a new
sentence. If a user wants to start a new paragraph, with new
indentation, a new block should be specified.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl