single-file-core 1.0.8 → 1.0.9

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.
@@ -220,13 +220,19 @@ function getFontFamilyNames(declarations) {
220
220
  if (fontFamilyName) {
221
221
  let familyName = "";
222
222
  if (fontFamilyName.data.value.children) {
223
+ let previousType;
223
224
  fontFamilyName.data.value.children.forEach(node => {
224
225
  if (node.type == "Operator" && node.value == "," && familyName) {
225
226
  fontFamilyNames.push(helper.normalizeFontFamily(familyName));
226
227
  familyName = "";
228
+ previousType = null;
227
229
  } else {
230
+ if (previousType == "Identifier" && node.type == "Identifier") {
231
+ familyName += " ";
232
+ }
228
233
  familyName += cssTree.generate(node);
229
234
  }
235
+ previousType = node.type;
230
236
  });
231
237
  } else {
232
238
  fontFamilyName = cssTree.generate(fontFamilyName.data.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",