This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push:
new c218446 fix: conservatively collapse whitespace
c218446 is described below
commit c218446122fc1b2b3a0532515135aab533c5f786
Author: Zoran Regvart <[email protected]>
AuthorDate: Fri Jul 12 18:32:36 2019 +0200
fix: conservatively collapse whitespace
When minifying the HTML non-conservative whitespace collapse would join
text from a paragraph with the tag, this in some cases would lead to the
joining of two words. For example, on the downloads page:
```html
<li>The latest feature release of Camel 2.24.x is <a
href="../releases/release-2.24.1/">2.24.1</a></li>
```
Would be minimized as
```html
<li>The latest feature release of Camel 2.24.x is<a
href="../releases/release-2.24.1/">2.24.1</a></li>
```
Joining the "is" with "2.24.1" and when rendering it would render as
"is2.24.1" where "2.24.1" would be rendered as a link.
---
gulpfile.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/gulpfile.js b/gulpfile.js
index 8f1e4f0..ada0b87 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -7,6 +7,7 @@ gulp.task('minify', () => {
collapseBooleanAttributes: true,
collapseWhitespace: true,
collapseInlineTagWhitespace: true,
+ conservativeCollapse: true,
useShortDoctype: true
}))
.pipe(gulp.dest('public'));