Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 2c9e78c

Browse files
petebacondarwintbosch
authored andcommitted
fix(api-builder/addJadeDataDocs): handle newlines better (#2296)
Closes #2294
1 parent 672ba7f commit 2c9e78c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/api-builder/angular.io-package/processors/addJadeDataDocsProcessor.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = function addJadeDataDocsProcessor() {
9595
});
9696

9797
// Remove line breaks, there should only be one tag
98-
howToUse = howToUseArray[0].description.replace(/(\r\n|\n|\r)/gm,"");
98+
howToUse = howToUseArray[0].description.replace(/(\r\n|\n|\r)/gm," ");
9999
}
100100

101101
var whatItDoes = '';
@@ -105,7 +105,7 @@ module.exports = function addJadeDataDocsProcessor() {
105105
});
106106

107107
// Remove line breaks, there should only be one tag
108-
whatItDoes = whatItDoesArray[0].description.replace(/(\r\n|\n|\r)/gm,"");
108+
whatItDoes = whatItDoesArray[0].description.replace(/(\r\n|\n|\r)/gm," ");
109109
}
110110

111111
// SECURITY STATUS
@@ -119,7 +119,7 @@ module.exports = function addJadeDataDocsProcessor() {
119119
});
120120

121121
// Remove line breaks, there should only be one tag
122-
security = securityArray[0].description.replace(/(\r\n|\n|\r)/gm,"");
122+
security = securityArray[0].description.replace(/(\r\n|\n|\r)/gm," ");
123123

124124
exportDoc.showSecurityNotes = true;
125125
}

0 commit comments

Comments
 (0)