mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
add setting for prompt linebreaks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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', ' ')
|
||||
|
||||
Reference in New Issue
Block a user