'Required:
line-- the line
type -- whether a character or paragraph
Returns:
nothing
Logic:
Determine the prefix by whether the type is "par" or "char".
Extract the number from a line such as "cw<ss<para-style<nu<15".
Look up that number in the styles dictionary and put a name for a number'

def __para_style_in_body_func(self, line, type):

    if (type == 'par'):
        prefix = 'para'
    else:
        prefix = 'char'
    num = line[20:(-1)]
    try:
        value = self.__styles_dict[type][num]['name']
    except KeyError:
        value = None
    if value:
        self.__write_obj.write(('cw<ss<%s-style<nu<%s\n' % (prefix, value)))
    else:
        self.__write_obj.write(('cw<ss<%s_style<nu<not-defined\n' % prefix))
