'Set plain text docs'

def set_plain_text(self, text, is_code):

    if (type(text) is dict):
        name = text['name']
        if name:
            rst_title = ''.join([('=' * len(name)), '\n', name, '\n', ('=' * len(name)), '\n\n'])
        else:
            rst_title = ''
        if text['argspec']:
            definition = ''.join(['Definition:    ', name, text['argspec'], '\n'])
        else:
            definition = ''
        if text['note']:
            note = ''.join(['Type:    ', text['note'], '\n\n----\n\n'])
        else:
            note = ''
        full_text = ''.join([rst_title, definition, note, text['docstring']])
    else:
        full_text = text
    self.plain_text.set_text(full_text, is_code)
    self.save_text([self.plain_text.set_text, full_text, is_code])
