fixed excessive spaces in TOC
fixed no-space after figure output
preserve no-space mode between KS/KF/KE invocation