Made time recording compatible with automatic insertion, and changed its behavior so that it records all "furthest" correct positions

if html starts with breaking space, now replaced with nbsp

some refactoring