Fix hannanum to handle newlines