Hi Georg,

you're right .. in this case the user is responsible for correctly inserting the text.
So there is no way to get this done with setting the attributes correctly?

Michael

Am 11.05.2011 16:18, schrieb Georg Datterl:

Hi Michael,

So if the user misses a blank, the alignment goes to hell? If yes, try to replace all blanks with   (or all double blanks with two nbsp, if you still want a break in the text). Ugly, but could work.

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de <http://www.geneon.de>

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de <http://www.irs-nbg.de>

Willmy PrintMedia GmbH: www.willmy.de <http://www.willmy.de>

Willmy Consult & Content GmbH: www.willmycc.de <http://www.willmycc.de>

*Von:*Michael Seeberger [mailto:[email protected]]
*Gesendet:* Mittwoch, 11. Mai 2011 16:13
*An:* [email protected]
*Betreff:* Re: Problem with whitespace-treatment

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:

Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a table?

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de <http://www.geneon.de>

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de <http://www.irs-nbg.de>

Willmy PrintMedia GmbH: www.willmy.de <http://www.willmy.de>

Willmy Consult & Content GmbH: www.willmycc.de <http://www.willmycc.de>

*Von:*Michael Seeberger [mailto:[email protected]]
*Gesendet:* Mittwoch, 11. Mai 2011 15:37
*An:* [email protected] <mailto:[email protected]>
*Betreff:* Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empfänger)

    Bank:                                      XXXXX
    BLZ:                                        XXXXX
    Konto:                                     XXXXX
    Empfänger:                            XXXXX

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um Bekanntgabe.

the value in my xml-tag is:

<abrechnungsfreitext isMonospace="false" text=" Bank: XXXXX&#xA; BLZ: XXXXX&#xA; Konto: XXXXX&#xA; Empfänger: XXXXX&#xA;&#xA;Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um Bekanntgabe." />

i tried several combinations of white-space-collapse, white-space-treatment and linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, white-space-treatment=*preserve *or *ignore-if-before-linefeed* => The text "Gutschriften überweisen ...." gets wrapped at "diese" and a leading whitespace is added to the following line so it looks like this:

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, white-space-treatment=*ignore-if-after-linefeed* or *ignore-if-surrounding-linefeed* => The leading whitespaces before "Bank", "BLZ" etc. are beeing ignored so the text is printed this way;


    Bank:                                      XXXXX
    BLZ:                                        XXXXX
    Konto:                                     XXXXX
    Empfänger:                            XXXXX

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before "Bank", and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger



--
iSYS Software GmbH
Michael Seeberger | Softwareentwickler +++ Achtung: Wir ziehen am 20.05.2011 um +++ Unsere neue Anschrift:
Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14
Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14
email:[email protected]  <mailto:[email protected]>
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de  <http://www.isys-software.de>
Sitz der Gesellschaft: München | HRB 111760
Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer

--
iSYS Software GmbH

Michael Seeberger | Softwareentwickler

+++ Achtung: Wir ziehen am 20.05.2011 um +++

Unsere neue Anschrift:
Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14

Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14
email: [email protected]
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de

Sitz der Gesellschaft: München | HRB 111760
Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer

Reply via email to