MediaWiki:Gadget-monospacediffs.css
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down Ctrl and click the Refresh or Reload button. Firefox: hold down ⇧ Shift while clicking Reload (or press Ctrl+⇧ Shift+R). Google Chrome and Safari users can just click the Reload button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Monospaced font and preserved whitespace for diffs */
.diff-addedline, .diff-deletedline, .diff-context {
font-family: monospace, monospace; /* has to be doubled to fix the font-size issue in Webkit */
white-space: pre-wrap;
}