Skip to content

yaml folded multiline unfolds when saved in docker compose #854

@AvedisBaghdasarian

Description

@AvedisBaghdasarian

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

ex

version: "3.9"
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    environment:
      TZ: America/Los_Angeles
      FTLCONF_webserver_api_password: insecure
      FTLCONF_dns_listeningMode: all
      # FTLCONF_misc_etc_dnsmasq_d: true
      FTLCONF_dns_dnsmasq_lines: >
        address=/asdf.lan/192.168.50.xxx;
        address=/asdf.lan/192.168.50.xxx;
        address=/asdf/192.168.50.xxx;
        address=/asdf.is/192.168.50.xxx

becomes

version: "3.9"
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    environment:
      TZ: America/Los_Angeles
      FTLCONF_webserver_api_password: insecure
      FTLCONF_dns_listeningMode: all
      # FTLCONF_misc_etc_dnsmasq_d: true
      FTLCONF_dns_dnsmasq_lines: >
        address=/asdf.lan/192.168.50.xxx; address=/asdf.lan/192.168.50.xxx;
        address=/asdf/192.168.50.xxx; address=/asdf.is/192.168.50.xxx

👟 Reproduction steps

attempt to save a multiline folded configuration as i have shown above

👀 Expected behavior

lines remain multline folded

😓 Actual Behavior

it all becomes one line, except for that first > ironically

Dockge Version

1.5.0

💻 Operating System and Arch

Ubuntu 24.04.3 LTS

🌐 Browser

Firefox

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions