Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mpilgrem
Copy link
Collaborator

See:

This uses LineSeparatedList so that:

flags:
  my-flag:
    description: |
      This is some text

      This is more some text
    manual: true
    default: true

renders as:

flag my-flag
  description:
      This is some text
      .
      This is more some text
  manual: True
  default: True

otherwise I could not see how to avoid ugly rendering.

@mpilgrem mpilgrem requested a review from sol October 23, 2025 22:32
@mpilgrem
Copy link
Collaborator Author

The CI is failing for reasons unrelated to this pull request. See:

Copy link

@sellout sellout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good as far as I can tell. Shares code with the existing description formatting, looks like it correctly handles Cabal versioning 👍

@sol
Copy link
Owner

sol commented Oct 24, 2025

See:

This uses LineSeparatedList so that:

flags:
  my-flag:
    description: |
      This is some text

      This is more some text
    manual: true
    default: true

renders as:

flag my-flag
  description:
      This is some text
      .
      This is more some text
  manual: True
  default: True

otherwise I could not see how to avoid ugly rendering.

What does ugly rendering mean?

Something like this?

flag my-flag
  description: This is some text
               .
               This is more some text
  manual: True
  default: True

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants