I am guessing they are space characters before the X's. I was just wondering if you have tried tab characters at all? Does that have a similar effect? Certainly in word processing tabs align much better than spaces especially where different fonts are involved.
Thanks. -Mike On 11/05/11 14:37, Michael Seeberger wrote: 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
��� 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." /> 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 Michael Rubin Developer [http://thunderhead.com/email_signature/images/Thunderhead-logo.png] [http://thunderhead.com/email_signature/images/make-every-communication-count.png] [http://thunderhead.com/email_signature/images/triangles.png] T F M E W +44 20 8238 7400 +44 20 8238 7401 mru...@thunderhead.com<mailto:mru...@thunderhead.com> www.thunderhead.com<http://www.thunderhead.com> Thunderhead featured in The Sunday Times Profit Track 100 league table of companies with fastest-growing profits. Click here<http://www.fasttrack.co.uk/fasttrack/press/pt11-lon.pdf> to read more. [http://thunderhead.com/email_signature/images/linkedin.png]<http://www.linkedin.com/companies/25033/Thunderhead> [http://thunderhead.com/email_signature/images/twitter.png] <http://twitter.com/Thunderheadon> [http://thunderhead.com/email_signature/images/rss.png] <http://www.thunderhead.com/rss/rss.php> [http://thunderhead.com/email_signature/images/youtube.png] <http://www.youtube.com/user/ThunderheadOn> [http://thunderhead.com/email_signature/images/theblog.png] <http://thunderheadinnovate.wordpress.com/> [http://thunderhead.com/email_signature/images/werehiring.png] <http://thunderhead.com/about/careers.php> The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.