Own dummy.widget with linebreak

I search a way to import a own dummy Widget (the same like original Dummy) but with change to show line breake \n or
.
Is this possible?

Koda

Have you reverse engineered any of the downloadable widgets to get a feel for how that might be done?