(text)
return text
Convert plain text to troff.
Convert plain text to troff.
Convert plain text to troff .
def _text_to_man(text):
    """Convert plain text to troff."""
    # escape special characters
    for key, value in TROFF_ESCAPES:
        text = text.replace(key, value)
    # replace line feeds with spaces
    text = text.replace(u'\n', u' ')
    # replace repeated spaces with a single space
    text = re.sub(u' +', u' ', text)
    return text
def _text_to_man ( text ) : # escape special characters for key , value in TROFF_ESCAPES : text = text . replace ( key , value ) # replace line feeds with spaces text = text . replace ( u'\n' , u' ' ) # replace repeated spaces with a single space text = re . sub ( u' +' , u' ' , text ) return text