s

Org mode preserve line breaks when export


1 reference

Search '\n' when you opened the page. and locates to:

\n:
    Toggles whether to preserve line breaks (org-export-preserve-breaks).
              

2 why I need it

When I write org-mode note, I can control the line width (80 columns I prefer).
But when I export to html, the text line will reach to the full screen width.
It's really a bad experience.

3 fix

keep the code below to you .emacs, and then restart emacs. Try to export your
org-mode document again, you will get what you want.

(setq org-export-preserve-breaks t)