Skip to content

Broken auto indent behavior in raw text editor #4650

@KabanFriends

Description

@KabanFriends

To Reproduce

  1. Create a "Compose" type project
  2. Set the compose provider to "Raw"
  3. Write several lines of YML
  • Add indentations (tab key)
  • Press Enter to add a newline while on an indented line

Current vs. Expected behavior

Expected

  • Auto indents added after newlines should match the current indent level (2, 4, 6 spaces etc.)

Current

  • It appends inconsistent number of spaces and messes up the indent level; sometimes it adds odd-numbered amount of spaces too

Provide environment information

Dokploy version: `v0.29.8`

Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Both

Additional context

Auto indents were working few months ago; I am not sure which exact update broke it

Will you send a PR to fix it?

Maybe, need help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions