def METHOD_NAME(self, context, layout):
    if self.show_text:
        row = layout.row()
        row.scale_y = 1.1
        row.prop(self, "text", text='')
    def draw_lines(col, lines):
        skip = False
        for l in lines:
            if l:
                col.label(text=l)
                skip = False
            elif skip:
                continue
            else:
                col.label(text=l)
                skip = True
    col = layout.column(align=True)
    if self.n_id in self.text_cache:
        data = self.text_cache.get(self.n_id)
        if data and data[0] == self.width:
            draw_lines(col, data[1])
            return
    text_lines = format_text(self.text, self.width)
    draw_lines(col, text_lines)