The NovelAI wiki recommends to not have spaces at the end of the prompt, because it breaks the coherence.
However, when using "Add sentence spacing", which add spaces between resuls, undoing leaves the generated space in. This creates a problem for generating next.
When undoing chunks with sentence spacing enabled, the engine should strip the final spaces from all text left.
The NovelAI wiki recommends to not have spaces at the end of the prompt, because it breaks the coherence.
However, when using "Add sentence spacing", which add spaces between resuls, undoing leaves the generated space in. This creates a problem for generating next.
When undoing chunks with sentence spacing enabled, the engine should strip the final spaces from all text left.