From ad2e8b496568bb239d6e4b149c09d736ed6d6060 Mon Sep 17 00:00:00 2001 From: deepsweet Date: Fri, 23 Nov 2012 18:19:33 +0400 Subject: [PATCH] plugins/removeEmptyContainers: do not remove an empty 'svg' element (fix #48) --- plugins/removeEmptyContainers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/removeEmptyContainers.js b/plugins/removeEmptyContainers.js index 66a329db..71375ad2 100644 --- a/plugins/removeEmptyContainers.js +++ b/plugins/removeEmptyContainers.js @@ -19,6 +19,6 @@ var container = require('./_collections').elemsGroups.container; */ exports.removeEmptyContainers = function(item, params) { - return !(item.isElem(container) && item.isEmpty()); + return !(item.isElem(container) && !item.isElem('svg') && item.isEmpty()); };