@blockspoon/cert-badge-renderer 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,7 @@ async function generateAchievementHTML(achievementInfo, options = {}) {
137
137
  ? "flex-start"
138
138
  : "flex-end"};
139
139
  word-break: ${type === "badge" ? "break-word" : "normal"};
140
- white-space: ${type === "badge" ? "pre-wrap" : "normal"};
140
+ white-space: ${type === "badge" ? "pre" : "normal"};
141
141
  opacity: ${element.opacity || 1};
142
142
  `;
143
143
  if (element.controlType === "svg") {
@@ -137,7 +137,7 @@ async function generateAchievementHTML(achievementInfo, options = {}) {
137
137
  ? "flex-start"
138
138
  : "flex-end"};
139
139
  word-break: ${type === "badge" ? "break-word" : "normal"};
140
- white-space: ${type === "badge" ? "pre-wrap" : "normal"};
140
+ white-space: ${type === "badge" ? "pre" : "normal"};
141
141
  opacity: ${element.opacity || 1};
142
142
  `;
143
143
  if (element.controlType === "svg") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockspoon/cert-badge-renderer",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Render certificate and badge designs from Kolleges achievement data into HTML, PNG, or Base64.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "exports": {
@@ -187,7 +187,7 @@ export async function generateAchievementHTML(
187
187
  : "flex-end"
188
188
  };
189
189
  word-break: ${type === "badge" ? "break-word" : "normal"};
190
- white-space: ${type === "badge" ? "pre-wrap" : "normal"};
190
+ white-space: ${type === "badge" ? "pre" : "normal"};
191
191
  opacity: ${element.opacity || 1};
192
192
  `;
193
193