'Returns the specified line from the given ``string``.
Line numbering starts from 0 and it is possible to use
negative indices to refer to lines from the end. The line is
returned without the newline character.
Examples:
| ${first} =    | Get Line | ${string} | 0  |
| ${2nd last} = | Get Line | ${string} | -2 |
Use `Split To Lines` if all lines are needed.'

def get_line(self, string, line_number):

    line_number = self._convert_to_integer(line_number, 'line_number')
    return string.splitlines()[line_number]
