Question: who wrote willy wonka and the chocolate factory
Answer: Dahl was credited with writing the film 's screenplay ; however , David Seltzer , who went uncredited in the film , was brought in to re-work the screenplay against Dahl 's wishes , making major changes to the ending and adding musical numbers .