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

Closed
opened 2026-11-07 17:42:52 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @strangechiao on GitHub (Mar 6, 2024).
Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/307


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

#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, 

Originally created by @strangechiao on GitHub (Mar 6, 2024). Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/307 ---------------------------------------------------------------------------------------- 比如,我写了一段关键词,我喜欢把这些关键词分类,他们之间空一行,这样好让我整理思路。 ``` #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, ``` ----------------------------------------------------------------------------------------
Author
Owner

@Issues-translate-bot commented on GitHub (Mar 6, 2024):

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?

<!-- gh-comment-id:1980097223 --> @Issues-translate-bot commented on GitHub (Mar 6, 2024): > 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?
Author
Owner

@Physton commented on GitHub (Mar 6, 2024):

  1. 粘贴到webui输入框中时,插件会把多个换行符变成一个,如果在插件的输入框使用添加换行符功能,则会保留多个换行符。
    你可以让插件不自动解析和格式化webui输入框的内容。
  2. #Lora# 这种写法,是注释的意思吗,现在SD默认就支持这种格式吗,还是第三方插件实现的。
<!-- gh-comment-id:1980204848 --> @Physton commented on GitHub (Mar 6, 2024): 1. 粘贴到webui输入框中时,插件会把多个换行符变成一个,如果在插件的输入框使用添加换行符功能,则会保留多个换行符。 你可以让插件不自动解析和格式化webui输入框的内容。 2. `#Lora#` 这种写法,是注释的意思吗,现在SD默认就支持这种格式吗,还是第三方插件实现的。
Author
Owner

@Issues-translate-bot commented on GitHub (Mar 6, 2024):

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?
<!-- gh-comment-id:1980205036 --> @Issues-translate-bot commented on GitHub (Mar 6, 2024): > 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?
Author
Owner

@strangechiao commented on GitHub (Mar 6, 2024):

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

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

<!-- gh-comment-id:1980484987 --> @strangechiao commented on GitHub (Mar 6, 2024): > 1. 粘贴到webui输入框中时,插件会把多个换行符变成一个,如果在插件的输入框使用添加换行符功能,则会保留多个换行符。 > 你可以让插件不自动解析和格式化webui输入框的内容。 > 2. `#Lora#` 这种写法,是注释的意思吗,现在SD默认就支持这种格式吗,还是第三方插件实现的。 您好,谢谢您的解答。 1、您说的`你可以让插件不自动解析和格式化webui输入框的内容`是怎么设置? 2、`#xxx#`这个是我自己弄的注释,因为我发现好像这样并不会对图片内容有影响,而且在读取图片tags信息时,#中的内容也自然消失了。
Author
Owner

@Issues-translate-bot commented on GitHub (Mar 6, 2024):

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.
<!-- gh-comment-id:1980485405 --> @Issues-translate-bot commented on GitHub (Mar 6, 2024): > 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.
Author
Owner

@Physton commented on GitHub (Mar 6, 2024):

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

image

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

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

<!-- gh-comment-id:1980792949 --> @Physton commented on GitHub (Mar 6, 2024): 1、您说的`你可以让插件不自动解析和格式化webui输入框的内容`是怎么设置? > ![image](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/12066768/42cd60d6-02ea-4ace-bdd7-a7f216e985e6) 2、`#xxx#`这个是我自己弄的注释,因为我发现好像这样并不会对图片内容有影响,而且在读取图片tags信息时,#中的内容也自然消失了。 > 如果 # 是官方支持的格式,可以让插件在 #注释# 后面不自动加逗号。但目前不明确,不知是否有其它的用途,所以暂时不修改。
Author
Owner

@Issues-translate-bot commented on GitHub (Mar 6, 2024):

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.

<!-- gh-comment-id:1980793624 --> @Issues-translate-bot commented on GitHub (Mar 6, 2024): > 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://github.com/Physton/sd-webui-prompt-all-in-one/assets/12066768/42cd60d6-02ea-4ace-bdd7-a7f216e985e6) 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. > 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.
Author
Owner

@strangechiao commented on GitHub (Mar 6, 2024):

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

image

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

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

感谢!!!

<!-- gh-comment-id:1980794849 --> @strangechiao commented on GitHub (Mar 6, 2024): > 1、您说的`你可以让插件不自动解析和格式化webui输入框的内容`是怎么设置? > > > ![image](https://private-user-images.githubusercontent.com/12066768/310502423-42cd60d6-02ea-4ace-bdd7-a7f216e985e6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk3Mjk0ODksIm5iZiI6MTcwOTcyOTE4OSwicGF0aCI6Ii8xMjA2Njc2OC8zMTA1MDI0MjMtNDJjZDYwZDYtMDJlYS00YWNlLWJkZDctYTdmMjE2ZTk4NWU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzA2VDEyNDYyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzMGVkNDkyYzE3YmZiMWE2MDA0YzE1Njk4ZTQ5YzgzMzc2ZmEzZjZlYzIxZDAyM2I0NmNjYzdiODM2YzZkMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2eTRw0lQucFvViUPaRWYZAdmlhzjuNneIN25lb9afxs) > > 2、`#xxx#`这个是我自己弄的注释,因为我发现好像这样并不会对图片内容有影响,而且在读取图片tags信息时,#中的内容也自然消失了。 > > > 如果 # 是官方支持的格式,可以让插件在 #注释# 后面不自动加逗号。但目前不明确,不知是否有其它的用途,所以暂时不修改。 感谢!!!
Author
Owner

@Issues-translate-bot commented on GitHub (Mar 6, 2024):

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! ! !

<!-- gh-comment-id:1980795209 --> @Issues-translate-bot commented on GitHub (Mar 6, 2024): > 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) > > 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. > > > 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! ! !
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#265
No description provided.