Order of inputs may not be pre-sorted if the shell does not
sort arguments before passing them to commands. As shells are
not required to sort arguments, make sure they are sorted in
doctool itself.
Mixing tabs and spaces will make newer versions of Python to
complain about indentation -- and by the way with good reason
as it usually introduces subtle bugs. Therefore, make all the
code use spaces.
New versions of docutils starting from 0.6 have introduced some changes in
the LaTeX translator which made doctool fail. This patch adds a workaround
for those new versions; for older docutils versions things should keep
working normally.