Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove extra spaces and empty lines from string python

"
".join([s for s in code.split("
") if s])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #extra #spaces #empty #lines #string #python
ADD COMMENT
Topic
Name
3+7 =