'Store the result (string) into the result key of the AMP
if one_line is true then replace
by separator'

def set_result(self, result, separator=''):

    if self.one_line():
        self.configs['result'] = str(result).replace('\n', separator)
    else:
        self.configs['result'] = str(result)
