diff --git a/config/changelog.yaml b/config/changelog.yaml
index 54e78f0271a..9b4e022d679 100644
--- a/config/changelog.yaml
+++ b/config/changelog.yaml
@@ -4,12 +4,26 @@ Unreleased:
Changed:
Deprecated:
Fixed:
+ Removed:
+ Security:
+
+2.4.4:
+ date: 2020-03-15
+ Changes:
+ plugin-dimension:
+ - Don't escape inch symbol in text. Instead let Svg.escapeText() handle it at render time
+ Fixed:
+ core:
+ - New Svg.escapeText() method to escape text at render time, rather than at draft time
+ This fixes the difference in the inch symbol is displayed in the React component or rendered SVG
+ huey:
+ - The `sleevecapBackFactorY` and `sleevecapFrontFactorY` options had a minimum above the default
simon:
- The `sleevecapBackFactorY` and `sleevecapFrontFactorY` options had a minimum above the default
simone:
- The `sleevecapBackFactorY` and `sleevecapFrontFactorY` options had a minimum above the default
- Removed:
- Security:
+ sven:
+ - The `sleevecapBackFactorY` and `sleevecapFrontFactorY` options had a minimum above the default
2.4.3:
date: 2020-03-12
diff --git a/packages/core/src/svg.js b/packages/core/src/svg.js
index c945b6e9448..34688188eed 100644
--- a/packages/core/src/svg.js
+++ b/packages/core/src/svg.js
@@ -182,7 +182,7 @@ Svg.prototype.renderPathText = function(path) {
let svg = this.nl() + ''
this.indent()
svg += `${
- this.text
+ this.escapteText(this.text)
}`
this.outdent()
svg += this.nl() + ''
@@ -214,7 +214,8 @@ Svg.prototype.renderText = function(point) {
svg += `${line}`
}
} else {
- svg += `${this.text}`
+ svg += `${this.escapeText(this.text)
+ }`
}
this.outdent()
svg += this.nl() + ''
@@ -222,6 +223,10 @@ Svg.prototype.renderText = function(point) {
return svg
}
+Svg.prototype.escapeText = function(text) {
+ return text.replace('"', '“')
+}
+
Svg.prototype.renderCircle = function(point) {
return `