mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-12-03 20:48:37 +07:00
[GH-ISSUE #294] [Bug] / Question How to remove space after lora? #255
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Physton/sd-webui-prompt-all-in-one#255
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thijsi123 on GitHub (Jan 13, 2024).
Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/294
Issue Feedback
Describe the Issue
So, after changing some settings (see attached image) I still can't seem to find an option to disable extra space after LoRA.

The problem is that it adds a space after > i.e.
lora:BADAPPLE:1 Bad apple style,
becomes
lora:BADAPPLE:1 Bad apple style,
so when pressing the LoRA again it only removes 'lora:BADAPPLE:1' instead 'lora:BADAPPLE:1 Bad apple style,' because of the extra space.
Steps to Reproduce
click on lora
click on lora to remove the activation text and lora
not everything is gone
Screenshot or log
OS
Windows
Browser
Edge
Stable Diffusion WebUI version
v1.7.0
Extension version
658ae822Python version
3.10.0
Gradio version
3.41.2
@thijsi123 commented on GitHub (Jan 14, 2024):
There's also a problem that after typing more tags after the lore it adds an extra space widening the gap.
is there any way to completely disable all formatting? I don't need it.
@thijsi123 commented on GitHub (Jan 14, 2024):
I fixed both my issues by changing
(Hn=this.autoRemoveSpace?"":" ")
to
(Hn=this.autoRemoveSpace?"":"")
inside
extensions\sd-webui-prompt-all-in-one\javascript\main.entry.js
may I request a toggle for this for future updates?
@Physton commented on GitHub (Jan 14, 2024):
Please check
Whether to remove the spaces after each comma in the keyword.@thijsi123 commented on GitHub (Jan 14, 2024):
That removes every space which causes the issue again.
@Lalimec commented on GitHub (Jan 30, 2024):
yes this is an annoying feature. Especially when i use loras with dynamic prompt. Try {lora:aaa:1|lora:bbb:1|lora:ccc:1|lora:ddd:1} and enjoy the show lol.