Merge pull request #1252 from halfdan/531-lines-to-spaces

Replace new-lines with spaces in excerpt helper.
This commit is contained in:
Hannah Wolfe 2013-10-24 07:30:49 -07:00
commit a190a209c0

View File

@ -192,6 +192,7 @@ coreHelpers = function (ghost) {
/*jslint regexp:true */
excerpt = String(this.html).replace(/<\/?[^>]+>/gi, '');
excerpt = excerpt.replace(/(\r\n|\n|\r)+/gm, ' ');
/*jslint regexp:false */
if (!truncateOptions.words && !truncateOptions.characters) {