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.77k stars 248 forks source link

[Feature] 请问,有换行后自动添加空格的功能吗? #307

Closed oopsjoe closed 6 months ago

oopsjoe commented 7 months ago

比如,我写了一段关键词,我喜欢把这些关键词分类,他们之间空一行,这样好让我整理思路。

#Lora#
<lora:asianGirlsFace_v1:0.8>, 

#画质#
((masterpiece, high quality, best quality, 8k, wallpaper, fine lineart, highly detailed, absurdres)), 
(extremely detailed, realistic, intricate details, highres), 
(cinematic lighting, sunlight, volumetric), 

#场景#
pink background, 

#构图#
(((full_shot, full_body))), from_above, 

#人物#
1girl, solo, shiny_skin, brown hair, straight_hair, brown eyes, pretty hands, 


但我点了一下空白处,插件自动把我的空行去掉,就变成了下边这样。哪怕我手动在提示词里加入空行,只要添加新的关键词空行就又没了。而且会在#xxx#后面加一个,和空格。

#Lora#, 
<lora:asianGirlsFace_v1:0.8>, 
#画质#, 
((masterpiece, high quality, best quality, 8k, wallpaper, fine lineart, highly detailed, absurdres)), 
(extremely detailed, realistic, intricate details, highres), 
(cinematic lighting, sunlight, volumetric), 
#场景#, 
pink background, 
#构图#, 
(((full_shot, full_body))), from_above, 
#人物#, 
1girl, solo, shiny_skin, brown hair, straight_hair, brown eyes, pretty hands, 

Issues-translate-bot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Feature] Is there a function to automatically add spaces after line breaks?

Physton commented 7 months ago
  1. 粘贴到webui输入框中时,插件会把多个换行符变成一个,如果在插件的输入框使用添加换行符功能,则会保留多个换行符。 你可以让插件不自动解析和格式化webui输入框的内容。
  2. #Lora# 这种写法,是注释的意思吗,现在SD默认就支持这种格式吗,还是第三方插件实现的。
Issues-translate-bot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  1. When pasting into the webui input box, the plug-in will turn multiple line breaks into one. If you use the add line break function in the input box of the plug-in, multiple line breaks will be retained. You can prevent the plug-in from automatically parsing and formatting the content of the webui input box.
  2. Does the way of writing #Lora# mean a comment? Does SD now support this format by default? Or is it implemented by a third-party plug-in?
oopsjoe commented 7 months ago
  1. 粘贴到webui输入框中时,插件会把多个换行符变成一个,如果在插件的输入框使用添加换行符功能,则会保留多个换行符。 你可以让插件不自动解析和格式化webui输入框的内容。
  2. #Lora# 这种写法,是注释的意思吗,现在SD默认就支持这种格式吗,还是第三方插件实现的。

您好,谢谢您的解答。 1、您说的你可以让插件不自动解析和格式化webui输入框的内容是怎么设置? 2、#xxx#这个是我自己弄的注释,因为我发现好像这样并不会对图片内容有影响,而且在读取图片tags信息时,#中的内容也自然消失了。

Issues-translate-bot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  1. When pasted into the webui input box, the plug-in will turn multiple line breaks into one. If you use the add line break function in the input box of the plug-in, multiple line breaks will be retained. You can prevent the plug-in from automatically parsing and formatting the content of the webui input box.
  2. Does the way of writing #Lora# mean a comment? Does SD now support this format by default? Or is it implemented by a third-party plug-in?

Hello, thank you for your answer.

  1. How do you set up what you said about ‘you can prevent the plug-in from automatically parsing and formatting the content of the webui input box’?
  2. #xxx# is an annotation I made myself, because I found that it does not seem to affect the content of the image, and when reading the image tags information, the content in # will naturally disappear.
Physton commented 7 months ago

1、您说的你可以让插件不自动解析和格式化webui输入框的内容是怎么设置?

image

2、#xxx#这个是我自己弄的注释,因为我发现好像这样并不会对图片内容有影响,而且在读取图片tags信息时,#中的内容也自然消失了。

如果 # 是官方支持的格式,可以让插件在 #注释# 后面不自动加逗号。但目前不明确,不知是否有其它的用途,所以暂时不修改。

Issues-translate-bot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  1. How do you set up what you said about ‘you can prevent the plug-in from automatically parsing and formatting the content of the webui input box’? image
  1. #xxx# is an annotation I made myself, because I found that it does not seem to affect the content of the image, and when reading the image tags information, the content in # will naturally disappear.

    If # is an officially supported format, you can prevent the plug-in from automatically adding a comma after #comment#. But it’s unclear at the moment and I don’t know if it has other uses, so I won’t modify it for the time being.

oopsjoe commented 7 months ago

1、您说的你可以让插件不自动解析和格式化webui输入框的内容是怎么设置?

image

2、#xxx#这个是我自己弄的注释,因为我发现好像这样并不会对图片内容有影响,而且在读取图片tags信息时,#中的内容也自然消失了。

如果 # 是官方支持的格式,可以让插件在 #注释# 后面不自动加逗号。但目前不明确,不知是否有其它的用途,所以暂时不修改。

感谢!!!

Issues-translate-bot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  1. How do you set up what you said about you can prevent the plug-in from automatically parsing and formatting the content of the webui input box?

! [Image] (https://private- user-images.githubuserContent.com/12066768/310502423-42CD606-02EA-BDD7-A7F216E98E6.png?jwt=eyjhbgccccccccccccccccccccccccc Ioijiuzi1niis5cci6ikpxvcj9.eyjpc3mioijnaxrodwiuy29tiiwiyxvkijoicmf3LMDPDGH1YNVZXJJB250LMNVBSIMTLETUILCJLEHAIOJEJE 3MDK3MJK0ODKSIII6MTCWOTCyote4oswicgf0aci6II8XMJC2OC2OC8ZMDI0MTNDJZDYTMDJLLWYWNCTDCTYTDMJTK4NWU2LNBUZ Z9yluftei1BBBBBBDVCML0AG09QVDTNC1ITUFDLVNIQTI1NIQTI1NIZYLUFTEI1DCMVKZW50AWFLSUFWQ09ewuxTuzflnfpbjgMKZ1LYXN0LT ELMKZZMYRMFCZRFCMVXDWVZDCZYLUFTEI1EYXRLPTIWMZA2VDEYNDYOVMWC1BBXOTRXHWAXJLCZMDAMWC1BXJLPTUZMGVKYZE3Y3Y mzimwe2mda0yze1njk4ztq5yzgzmzc2zmezzjzLYZIXZDAY2I0NMNJYZDIODM2YZZKMWC1BBXOTU2LNBMVHzgvycz1ob3nyx2LKPTAMA2V5X2 LKPTAMCMVWB19PZD0WIN0.2ETRW0LQUCFVVVVADMLHZJUNNEIN25LB9AFXS)

  1. #xxx# is an annotation I made myself, because I found that it does not seem to affect the content of the image, and when reading the image tags information, the content in # will naturally disappear.

If # is an officially supported format, you can prevent the plug-in from automatically adding a comma after the #comment#. But it’s unclear at the moment and I don’t know if it has other uses, so I won’t modify it for the time being.

grateful! ! !