diff --git a/src/customwidgets/qgscollapsiblegroupboxplugin.cpp b/src/customwidgets/qgscollapsiblegroupboxplugin.cpp
index ac92485d524..559c246d0d3 100644
--- a/src/customwidgets/qgscollapsiblegroupboxplugin.cpp
+++ b/src/customwidgets/qgscollapsiblegroupboxplugin.cpp
@@ -91,12 +91,6 @@ QString QgsCollapsibleGroupBoxPlugin::domXml() const
" 100\n"
" \n"
" \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
" \n"
"\n" )
.arg( name() );
diff --git a/src/customwidgets/qgsfieldcomboboxplugin.cpp b/src/customwidgets/qgsfieldcomboboxplugin.cpp
index 6936489776c..4d94c582358 100644
--- a/src/customwidgets/qgsfieldcomboboxplugin.cpp
+++ b/src/customwidgets/qgsfieldcomboboxplugin.cpp
@@ -91,12 +91,6 @@ QString QgsFieldComboBoxPlugin::domXml() const
" 27\n"
" \n"
" \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
" \n"
"\n" )
.arg( name() );
diff --git a/src/customwidgets/qgsfieldexpressionwidgetplugin.cpp b/src/customwidgets/qgsfieldexpressionwidgetplugin.cpp
index 9a5221b13de..c12684899fb 100644
--- a/src/customwidgets/qgsfieldexpressionwidgetplugin.cpp
+++ b/src/customwidgets/qgsfieldexpressionwidgetplugin.cpp
@@ -91,12 +91,6 @@ QString QgsFieldExpressionWidgetPlugin::domXml() const
" 27\n"
" \n"
" \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
" \n"
"\n" )
.arg( name() );
diff --git a/src/customwidgets/qgsmaplayercomboboxplugin.cpp b/src/customwidgets/qgsmaplayercomboboxplugin.cpp
index 10a8aa7ee0d..0404e78fee9 100644
--- a/src/customwidgets/qgsmaplayercomboboxplugin.cpp
+++ b/src/customwidgets/qgsmaplayercomboboxplugin.cpp
@@ -91,12 +91,6 @@ QString QgsMapLayerComboBoxPlugin::domXml() const
" 27\n"
" \n"
" \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
" \n"
"\n" )
.arg( name() );
diff --git a/src/customwidgets/qgsscalerangewidgetplugin.cpp b/src/customwidgets/qgsscalerangewidgetplugin.cpp
index cddabf94577..8ba415245dd 100644
--- a/src/customwidgets/qgsscalerangewidgetplugin.cpp
+++ b/src/customwidgets/qgsscalerangewidgetplugin.cpp
@@ -91,12 +91,6 @@ QString QgsScaleRangeWidgetPlugin::domXml() const
" 100\n"
" \n"
" \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
- " \n"
" \n"
"\n" )
.arg( name() );