remove newlines from titles when we index them

I would break this out into another function so it could be reused.
def as_one_line(text):
    return u' '.join([t.strip() for t in text.splitlines()])