Skip to content

fix: comment body newlines are lost (stored as raw HTML without <br>/<p>) #17

Description

@Liewzheng

Describe the bug

When adding a comment with planecli comment create, newlines in --body are lost in the web UI: the whole comment renders as a single line/paragraph.

To Reproduce

planecli comment create PROJ-1 --body $'first line\nsecond line'

Then open the work item in the Plane web UI — the comment shows as first line second line (or one unbroken block), because the body is stored as raw HTML and plain \n is not a line break in HTML.

Expected behavior

Each line of --body renders on its own line, matching what the user typed.

Environment

  • planecli 0.5.x
  • Plane CE 1.4.2 (self-hosted)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions