Skip to content

Commit

Permalink
Merge pull request #1236 from AlexJerabek/AlexJ-Example
Browse files Browse the repository at this point in the history
[API Documenter]  Add extra newline character to example header
  • Loading branch information
octogonz authored Apr 16, 2019
2 parents 9840498 + b55bf4c commit b5e8cd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class OfficeYamlDocumenter extends YamlDocumenter {
}

private _generateExampleSnippetText(snippets: string[]): string {
const text: string[] = ['\n#### Examples\n'];
const text: string[] = ['\n\n#### Examples\n'];
for (const snippet of snippets) {
if (snippet.search(/await/) === -1) {
text.push('```javascript');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@microsoft/api-documenter",
"comment": "Adding an extra newline to the OfficeYamlDocumenter Examples header insertion",
"type": "patch"
}
],
"packageName": "@microsoft/api-documenter",
"email": "[email protected]"
}

0 comments on commit b5e8cd1

Please sign in to comment.