[GH-ISSUE #294] [Bug] / Question How to remove space after lora? #255

Open
opened 2026-11-07 17:42:44 +07:00 by bsakaguchi · 5 comments
Owner

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

  • I confirm that I have searched for a solution to this issue in the FAQ and couldn't find a solution.
  • I confirm that I have searched for this issue in the Issues list (including closed ones) and couldn't find a solution.
  • I confirm that I have read the Wiki and couldn't find a solution.

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.
image

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

badapple

OS

Windows

Browser

Edge

Stable Diffusion WebUI version

v1.7.0

Extension version

658ae822

Python version

3.10.0

Gradio version

3.41.2

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 - [X] I confirm that I have searched for a solution to this issue in the [FAQ](https://aiodoc.physton.com/FAQ.html) and couldn't find a solution. - [X] I confirm that I have searched for this issue in the [Issues](https://github.com/Physton/sd-webui-prompt-all-in-one/issues) list (including closed ones) and couldn't find a solution. - [X] I confirm that I have read the [Wiki](https://aiodoc.physton.com/) and couldn't find a solution. ### 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. ![image](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/64159148/3e28266c-550c-43b6-80ba-85cd8e261417) 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 ![badapple](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/64159148/1e758b4f-7380-4dae-872b-0e01c2a0690a) ### OS Windows ### Browser Edge ### Stable Diffusion WebUI version v1.7.0 ### Extension version 658ae822 ### Python version 3.10.0 ### Gradio version 3.41.2
Author
Owner

@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.

<!-- gh-comment-id:1890872224 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:1890906333 --> @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?
Author
Owner

@Physton commented on GitHub (Jan 14, 2024):

image
Please check Whether to remove the spaces after each comma in the keyword.

<!-- gh-comment-id:1890911310 --> @Physton commented on GitHub (Jan 14, 2024): ![image](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/12066768/077fa740-7e86-4d13-afe4-0c1597fb6eaf) Please check `Whether to remove the spaces after each comma in the keyword.`
Author
Owner

@thijsi123 commented on GitHub (Jan 14, 2024):

That removes every space which causes the issue again.

<!-- gh-comment-id:1890999109 --> @thijsi123 commented on GitHub (Jan 14, 2024): That removes every space which causes the issue again.
Author
Owner

@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.

<!-- gh-comment-id:1917087887 --> @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.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Physton/sd-webui-prompt-all-in-one#255
No description provided.