Use QSaveFile to save the file more safely

Fix handling of "BFC INVERTNEXT" with multiple inner whitespaces

Fix memory corruption involving document tools.

(0) -100 -30 -10 -3 +3 +10 +30 +100 tip

mercurial