* Calculate correct number of spaces for replacing tabs. * Replace tabs in document content rather than just in the data stream   when saving, so that the change is real and visible to the user. * Remove trailing spaces in the document content rather than just in the   data stream when saving, so that the change becomes real and visible   to the user.
* Calculate correct number of spaces for replacing tabs.
* Replace tabs in document content rather than just in the data stream
  when saving, so that the change is real and visible to the user.
* Remove trailing spaces in the document content rather than just in the
  data stream when saving, so that the change becomes real and visible
  to the user.

I will backport in a few days, if i have no complains from other developers
or problems using it.

CCMAIL: 74700@bugs.kde.org

svn path=/trunk/kdelibs/kate/; revision=297769

sandsmark/kate,hlamer/kate,hlamer/kate,DickJ/kate,sandsmark/kate,cmacq2/kate,hlamer/kate,cmacq2/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,cmacq2/kate,hlamer/kate,DickJ/kate,hlamer/kate,sandsmark/kate,hlamer/kate,hlamer/kate,sandsmark/kate,DickJ/kate,jfmcarreira/kate,jfmcarreira/kate,hlamer/kate,DickJ/kate