* fix: automatic indentation follows previous lines in lists (#4048) * fix: automatic indentation follows previous lines in lists (#4048) change the position of this logic and recommit it