Added a check to make sure a whitespace space isn't added to the end of a line, makes sure that the right alignment works Code changes sponsored by Dresdner Bank, Germany