mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
plugins/removeEmptyContainers: do not remove an empty 'svg' element (fix #48)
This commit is contained in:
@ -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());
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user