Index: branches/RC/core/units/pdf/pdf_text.php =================================================================== diff -u -N -r10294 -r10432 --- branches/RC/core/units/pdf/pdf_text.php (.../pdf_text.php) (revision 10294) +++ branches/RC/core/units/pdf/pdf_text.php (.../pdf_text.php) (revision 10432) @@ -142,7 +142,7 @@ // remove space at the end of line // @todo Find a way to detect a space at the end of last line, which is NOT wrapped // otherwise right-aligned blocks will have a space at the end of last line - if ( $words[$i-1] == ' ' && $line_break && + if ( ($i > 0 && $words[$i-1]) == ' ' && $line_break && ($whitespace == 'normal' || $whitespace == 'nowrap' || $whitespace == 'preline') ) { $i--;