kenichiro22/rst2confluence — pull request #10 by adrian-castravete (2014-08-12 14:28:00+00:00)
Title: Fix weird behaviour of splitlines

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_