add setting for prompt linebreaks

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-02-01 09:41:52 -05:00
parent 64a5ca6471
commit 8e03755d4b
4 changed files with 27 additions and 5 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ def parse_prompt_attention(text):
whitespace = ''
else:
re_attention = re_attention_v1
if native:
if native and opts.sd_textencder_linebreak:
text = text.replace('\n', ' BREAK ')
else:
text = text.replace('\n', ' ')