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

Indented jsdocs are not formatted correctly #141

Closed
c4spar opened this issue Jul 9, 2021 · 4 comments · Fixed by #282
Closed

Indented jsdocs are not formatted correctly #141

c4spar opened this issue Jul 9, 2021 · 4 comments · Fixed by #282
Assignees
Labels
enhancement New feature or request priority: high

Comments

@c4spar
Copy link

c4spar commented Jul 9, 2021

Describe the bug

When formatting indented jsdocs, only the first line is indented correctly.

Deno version: All deno versions.

Input Code

    /**
     * Converts string to camel case.
     *
     * @param string   The string to convert.
     * @return Returns the camel cased string.
     */
declare function capitalize(
  string: string,
): string;

Expected Output

/**
 * Converts string to camel case.
 *
 * @param string   The string to convert.
 * @return Returns the camel cased string.
 */
declare function capitalize(
  string: string,
): string;

Actual Output

/**
     * Converts string to camel case.
     *
     * @param string   The string to convert.
     * @return Returns the camel cased string.
     */
declare function capitalize(
  string: string,
): string;
@dsherret
Copy link
Member

dsherret commented Jul 9, 2021

This is essentially #1. Will get to it eventually!

@dsherret dsherret added the enhancement New feature or request label Jul 9, 2021
@joscha
Copy link
Contributor

joscha commented Aug 27, 2021

Can you give a hint on where this would be fixed? We're seeing this in a fair few spots :)

@dsherret dsherret self-assigned this Sep 1, 2021
@dsherret
Copy link
Member

dsherret commented Sep 1, 2021

I'll work on this one soon. We need it in deno to better support users changing their indentation denoland/deno#11857

@joscha
Copy link
Contributor

joscha commented Sep 2, 2021

wohoo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants