Repository: stable-diffusion-webui
Issue: [Bug]: Infotext messed up
Labels: not-an-issue

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [x] The issue has been reported before but has not been fixed yet

### What happened?

After December 16, the infotext stopped being line-separated. Prompt template and generation parameters are now in one line. Everything is mixed up.

### Steps to reproduce the problem

1. Put the prompt and generate.
2. Open generated image in text editor.

### What should have happened?

The metadata now:
```
[artwork|painting] of girl, (standing), (otaku room, books, game console:1.19), evening, perspective, brunette, freckles, full shot, (noir:0.8), high detail, highres, 16K, <lora:Colorwater_v4:0.15>, <lora:sharpen-soften:-0.2>, <lora:add_detail:0.27>
Negative prompt: (low quality, worst quality), overexposure, normal quality, grayscale, cropped, text, signature, username, missing fingers, deformed, bad anatomy, bad_eyes, ugly, sketches, (over saturated), KHFB, badhandv4, EasyNegativeV2, bad_prompt_version2
Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 20, Seed: 1198099675, Size: 512x768, Model: OilTeaRev, VAE: vae-ft-mse-840000-ema-pruned.ckpt, Denoising strength: 0.48, Clip skip: 2, RNG: CPU, Template: "[artwork|painting] of girl, (standing), (otaku room, books, game console:__Wt12__), evening, perspective, brunette, freckles, full shot, (noir:0.8), high detail, highres, 16K, <lora:Colorwater_v4:0.15>, <lora:sharpen-soften:-0.2>, <lora:add_detail:0.27>", Negative Template: "(low quality, worst quality), overexposure, normal quality, grayscale, cropped, text, signature, username, missing fingers, deformed, bad anatomy, bad_eyes, ugly, sketches, (over saturated), KHFB, badhandv4, EasyNegativeV2, bad_prompt_version2", Hires upscale: 1.8, Hires steps: 12, Hires upscaler: 4x-UltraSharp, Lora hashes: "Colorwater_v4: 91184b428ad3, sharpen-soften: afe761ea29e2, add_detail: 7c6bad76eb54", Dynamic thresholding enabled: True, Mimic scale: 7, Separate Feature Channels: True, Scaling Startpoint: MEAN, Variability Measure: AD, Interpolate Phi: 1, Threshold percentile: 98, Mimic mode: Half Cosine Up, Mimic scale minimum: 4, CFG mode: Half Cosine Up, CFG scale minimum: 4, Version: v1.7.0
```


Metadata as it before Dec 16:
```
[artwork|painting] of girl, (standing), (otaku room, books, game console:1.19), evening, perspective, brunette, freckles, full shot, (noir:0.8), high detail, highres, 16K, <lora:Colorwater_v4:0.15>, <lora:sharpen-soften:-0.2>, <lora:add_detail:0.27>
Negative prompt: (low quality, worst quality), overexposure, normal quality, grayscale, cropped, text, signature, username, missing fingers, deformed, bad anatomy, bad_eyes, ugly, sketches, (over saturated), KHFB, badhandv4, EasyNegativeV2, bad_prompt_version2
Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 20, Seed: 1198099675, Size: 512x768, Model: OilTea, VAE: vae-ft-mse-840000-ema-pruned.ckpt, Denoising strength: 0.48, Clip skip: 2, RNG: CPU, Hires upscale: 1.6, Hires steps: 12, Hires upscaler: 4x-UltraSharp, Lora hashes: "Colorwater_v4: 91184b428ad3, sharpen-soften: afe761ea29e2, add_detail: 7c6bad76eb54", Dynamic thresholding enabled: True, Mimic scale: 7, Separate Feature Channels: True, Scaling Startpoint: MEAN, Variability Measure: AD, Interpolate Phi: 1, Threshold percentile: 98, Mimic mode: Half Cosine Up, Mimic scale minimum: 4, CFG mode: Half Cosine Up, CFG scale minimum: 4, TI hashes: "KHFB: adac8597dae8, badhandv4: 5e40d722fc3d, EasyNegativeV2: 339cc9210f70, bad_prompt_version2: 6f35e7dd816a", Version: v1.6.0-2-g4afaaf8a, Hashes: {"vae": "c6a580b13a", "embed:EasyNegativeV2": "339cc9210f", "embed:KHFB": "adac8597da", "embed:bad_prompt_version2": "6f35e7dd81", "embed:badhandv4": "5e40d722fc", "lora:Colorwater_v4": "1b175706ff", "lora:add_detail": "47aaaf0d29", "model": "bde477b987"}
Template: [artwork|painting] of girl, (standing), (otaku room, books, game console:__Wt12__), evening, perspective, brunette, freckles, full shot, (noir:0.8), high detail, highres, 16K, <lora:Colorwater_v4:0.15>, <lora:sharpen-soften:-0.2>, <lora:add_detail:0.27>
Negative Template: (low quality, worst quality), overexposure, normal quality, grayscale, cropped, text, signature, username, missing fingers, deformed, bad anatomy, bad_eyes, ugly, sketches, (over saturated), KHFB, badhandv4, EasyNegativeV2, bad_prompt_version2
```

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

[sysinfo-2024-01-05-05-22.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13838233/sysinfo-2024-01-05-05-22.json)


### Console logs

```Shell
Already up to date.
venv "L:\Neuro\WEB_UI_SDXL\webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Installing sd-webui-controlnet requirement: trimesh[easy]
#######################################################################################################
Initializing Civitai Link
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Civitai Link revision: 2008ba9126ddbb448f23267029b07e4610dffc15
SD-WebUI revision: cf2772fab0af5573da775e7437e6acdca424f26e

Checking Civitai Link requirements...
[!] python-socketio[client] version 5.7.2 NOT installed.

#######################################################################################################
Launching Web UI with arguments: --xformers --no-half-vae
[-] ADetailer initialized. version: 24.1.0, num models: 9
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
ControlNet preprocessor location: L:\Neuro\WEB_UI_SDXL\webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-05 08:30:12,400 - ControlNet - INFO - ControlNet v1.1.427
2024-01-05 08:30:12,532 - ControlNet - INFO - ControlNet v1.1.427
Civitai: API loaded
Loading weights [d2875bb4c5] from L:\Neuro\WEB_UI_SDXL\webui\models\Stable-diffusion\OilTeaRev.safetensors
Creating model from config: L:\Neuro\WEB_UI_SDXL\webui\configs\v1-inference.yaml
L:\Neuro\WEB_UI_SDXL\webui\extensions\sd-webui-additional-networks\scripts\metadata_editor.py:399: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
L:\Neuro\WEB_UI_SDXL\webui\extensions\sd-webui-additional-networks\scripts\metadata_editor.py:521: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  cover_image = gr.Image(
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai: Check resources for missing info files
Civitai: Check resources for missing preview images
Startup time: 47.6s (initial startup: 0.2s, prepare environment: 16.0s, import torch: 9.1s, import gradio: 4.4s, setup paths: 4.0s, initialize shared: 0.3s, other imports: 3.7s, setup codeformer: 0.6s, setup gfpgan: 0.1s, list SD models: 0.4s, load scripts: 7.3s, create ui: 1.0s, gradio launch: 0.3s).
Civitai: Found 174 resources missing info files
Civitai: Found 148 resources missing preview images
Civitai: No preview images found on Civitai
Civitai: No info found on Civitai
Loading VAE weights specified in settings: L:\Neuro\WEB_UI_SDXL\webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Applying attention optimization: xformers... done.
Model loaded in 5.6s (load weights from disk: 0.8s, create model: 0.5s, apply weights to model: 3.4s, load VAE: 0.4s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.1s).
```


### Additional information

Tested with and without Civitai Extension.