Gustave Flaubert was an author of realist French literature whose most famous novel, Madame Bovary, landed him in court for immorality.