def preprocess_pages(pages, **options):
    """Convert a 2-element page range tuple to a string."""
    if isinstance(pages, tuple) and len(pages) == 2:
        return "{0}--{1}".format(pages[0], pages[1])

    return str(pages)