Fix weird splitline behaviour

Splitlines behaves strangely when a line ends with '\n'

    >>> value = "something\n"
    >>> value.splitlines()
    ['something']
    >>> value.split('\n')
    ['something', '']

This has made the program translate this `reStructuredText` input

    This is something
    *new*

into this `confluence` output

    This is something_new_

This fix makes it behave normally and make the `confluence` output be

    This is something _new_
My modifications.
Ignore unknown items and remove unneeded new lines