When clicking the tool icon for 'Beautify current file' it not only cleans up the code formatting in the code window so it's much more easily readable, but it also changes the formatting in the preview window and in the rendering of the file in Kindle Previewer. See the included before/after graphic of an .azw3 file.