Skip to content

Commit

Permalink
docs: Fix double returns in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 1, 2021
1 parent b4bfa4d commit b91f520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docs/typescript-docs-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export class TypescriptDocsParser {
* Ensure all the code examples use the unix-style line separators.
*/
private formatExampleCode(example: string = ''): string {
return '\n\n*Example*\n\n' + example.replace(/\r/g, '\n');
return '\n\n*Example*\n\n' + example.replace(/\r/g, '');
}

private kebabCase<T extends string | undefined>(input: T): T {
Expand Down

0 comments on commit b91f520

Please sign in to comment.