Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to wrap lines after periods #101

Open
solonovamax opened this issue Aug 13, 2024 · 1 comment
Open

Option to wrap lines after periods #101

solonovamax opened this issue Aug 13, 2024 · 1 comment

Comments

@solonovamax
Copy link

solonovamax commented Aug 13, 2024

An option to wrap lines after periods would be nice.

For example:

/**
 * This is some example text. Here is a second sentence.
 */

after formatting becomes

/**
 * This is some example text.
 * Here is a second sentence.
 */

Some edge cases:

  • option to wrap/not wrap lists after periods.
    eg.
    /**
     * This is some example text. Here is a second sentence.
     * - This is a list item. This is a fourth sentence.
     */
    • When both line wrapping after periods and wrapping in lists are enabled becomes:
      /**
       * This is some example text.
       * Here is a second sentence.
       * - This is a list item.
       *   This is a fourth sentence.
       */
    • When line wrapping after periods is enabled but wrapping in lists is disabled becomes:
      /**
       * This is some example text.
       * Here is a second sentence.
       * - This is a list item. This is a fourth sentence.
       */
  • Tables. When formatting tables. do not insert line breaks:
    /**
     * This is some example text. Here is a second sentence.
     * | Header | Header 2  |
     * |--------|-----------|
     * | Foo    | Bar. Baz. |
     */
    becomes
    /**
     * This is some example text.
     * Here is a second sentence.
     * | Header | Header 2  |
     * |--------|-----------|
     * | Foo    | Bar. Baz. |
     */
  • Code blocks. Don't touch them at all.
@solonovamax
Copy link
Author

oops hit enter on accident lol

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

No branches or pull requests

1 participant