Skip to content

Instantly share code, notes, and snippets.

@digitalresistor
Created November 20, 2017 22:54
Show Gist options
  • Save digitalresistor/0196d1eb35910673cd0f8a88046b0ba3 to your computer and use it in GitHub Desktop.
Save digitalresistor/0196d1eb35910673cd0f8a88046b0ba3 to your computer and use it in GitHub Desktop.
def myfunc():
"""
>>> print(myfunc())
some text
<BLANKLINE>
not blank
"""
l = ['some text', '', 'not blank']
return '\r\n'.join(l)
def myfunc_n():
"""
>>> print(myfunc_n())
some text
<BLANKLINE>
not blank
"""
l = ['some text', '', 'not blank']
return '\n'.join(l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment