def get_pratchett_quotes():
    """
    Gets quotes written in my preferred format,
    viz. with quotes separated by pairs of blank
    (whitespace only) lines.
    """
    files = [ "fish.cx/quotes/" + file
              for file in(
                "pratchett.txt",
                "good_omens.txt",
                "pyramids.txt",
                "mort.txt",
                "misc_quotes.txt",
              )
            ]

    quotes = []
    for filename in files:
        lines = [ line.rstrip() for line in open(filename) ]
        lines = "\n".join( lines )
        quotes += [ quote.strip()
                    for quote in lines.split("\n\n\n") ]
    return quotes


if __name__=="__main__":
    print ("\n" + "-"*78 + "\n").join( get_pratchett_quotes() )

