RE: align=justify in preformatting content
Yes I could, but it won't be very nice, and it would take a very long time to do that... I hope there is another way to solve my problem :) Thanks Yann -Original Message- From: Yann Bonnaillie [mailto:[EMAIL PROTECTED] Hi, Well, I succeed to keep my new line after fop transformation, but now when I use text-align=justify on my fo:block, last line of each chapter (ie : before each new line) are expanded, what looks very bad. Hmmm... Not really sure how to solve this, but I think you could avoid this by terminating your DOM nodes at the newline character (or character sequence)... That way, you would generate a separate fo:block for each paragraph...? May be a long shot, but HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: align=justify in preformatting content
-Original Message- From: Yann Bonnaillie [mailto:[EMAIL PROTECTED] Hi, Yes I could, but it won't be very nice, and it would take a very long time to do that... Aaahh... Blasted laziness! What do you mean exactly by 'not very nice'? AFAICT, it would be: a) far more 'appropriate' to enclose each paragraph in a fo:block. This neatly complies with the spec stating that The fo:block formatting object is commonly used for formatting paragraphs, ... http://www.w3.org/TR/xsl/slice6.html#fo_block For special cases, like blocks of code, you can always insert a nested fo:block that overrides the alignment properties from the parent fo:block (--should work, apart from a few nasty side-effects in quite exotic cases) b) it can't be *that* difficult to make a slight adjustment to the module creating the DOMs to end the node and start a new one whenever the CR-LF char sequence is encountered The problem would solve itself, because instead of having to worry about it, you just let the formatter do what it was meant to do... I hope there is another way to solve my problem :) I'm afraid I can't think of any solutions that are 'nice' (in terms of XSL-FO idioms) :-) Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: align=justify in preformatting content
-Original Message- From: Yann Bonnaillie [mailto:[EMAIL PROTECTED] Hi, Well, I succeed to keep my new line after fop transformation, but now when I use text-align=justify on my fo:block, last line of each chapter (ie : before each new line) are expanded, what looks very bad. Hmmm... Not really sure how to solve this, but I think you could avoid this by terminating your DOM nodes at the newline character (or character sequence)... That way, you would generate a separate fo:block for each paragraph...? May be a long shot, but HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]