I just tested this and org-mode does not display spaces from the content when using org-export-as-html .
Web browsers, of course, dump white space when rendering HTML.
I suggest you explore the white-space CSS property (the pre-wrap value is probably what you want), along with Org Mode support for CSS in exported HTML:
M-: (info "(org) CSS support") RET
phils
source share