This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18789 57a11ea4-9604-0410-9ed3-97b8803252fd
Check the return value of fprintf and use ferror where libraries as
libxml do the write.
The change may not be perfect yet and a review would be nice. Still, it
detects quite a few errors that, without it, slip through and may
destroy valuable data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18593 57a11ea4-9604-0410-9ed3-97b8803252fd