[feature/editor-code-tabs] Correctly count indentation on first line

Minor improvement to previously merged PR

PHPBB3-11557