calcrepo/util.py
def replaceNewlines(string, newlineChar):
	"""There's probably a way to do this with string functions but I was lazy.
		Replace all instances of \r or \n in a string with something else."""
	if newlineChar in string:
		segments = string.split(newlineChar)
		string = ""
		for segment in segments:
			string += segment
	return string
There's probably a way to do this with string functions but I was lazy.
		Replace all instances of \r or \n in a string with something else.
There's probably a way to do this with string functions but I was lazy.
Replace all instances of \r or \n in a string with something else.
There ' s probably a way to do this with string functions but I was lazy . Replace all instances of \ r or \ n in a string with something else .
def replaceNewlines(string, newlineChar):
	if newlineChar in string:
		segments = string.split(newlineChar)
		string = ""
		for segment in segments:
			string += segment
	return string
def replaceNewlines ( string , newlineChar ) : if newlineChar in string : segments = string . split ( newlineChar ) string = "" for segment in segments : string += segment return string
There's probably a way to do this with string functions but I was lazy.
There ' s probably a way to do this with string functions but I was lazy .
"""There's probably a way to do this with string functions but I was lazy.
		Replace all instances of \r or \n in a string with something else."""
string
newlineChar