Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html export option to NOT compress multiple spaces in emacs org mode

While doing html-export in org-mode, multiple spaces are compressed to a single space. Is there a way to change this default behaviour. (I do not wish to replace extra spaces with nbsp)

like image 950
Karan Avatar asked Feb 20 '12 04:02

Karan


1 Answers

I just tested this, and org-mode does not appear to delete spaces from the content when using org-export-as-html.

Web browsers, of course, do collapse white-space when rendering HTML.

I suggest you look into the white-space CSS property (the pre-wrap value is probably what you want), along with Org Mode's support for CSS in exported HTML:
M-: (info "(org) CSS support") RET

like image 175
phils Avatar answered Sep 19 '22 21:09

phils