Physton / sd-webui-prompt-all-in-one

This is an extension based on sd-webui, aimed at improving the user experience of the prompt/negative prompt input box. It has a more intuitive and powerful input interface function, and provides automatic translation, history record, and bookmarking functions. 这是一个基于 sd-webui 的扩展,旨在提高提示词/反向提示词输入框的使用体验。它拥有更直观、强大的输入界面功能,它提供了自动翻译、历史记录和收藏等功能。
https://aiodoc.physton.com
MIT License
2.82k stars 251 forks source link

[Bug] / Question How to remove space after lora? #294

Open thijsi123 opened 10 months ago

thijsi123 commented 10 months ago

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

The problem is that it adds a space after > i.e.

Bad apple style, becomes Bad apple style, so when pressing the LoRA again it only removes '' instead ' 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
thijsi123 commented 10 months ago

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 10 months ago

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 10 months ago

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

thijsi123 commented 10 months ago

That removes every space which causes the issue again.

Lalimec commented 9 months ago

yes this is an annoying feature. Especially when i use loras with dynamic prompt. Try {|||} and enjoy the show lol.