Fix #3654: prevent org-export-to-html removing line-breaks

When either :input chinese or :input japanese is enabled, due to
overzealous advice.
This commit is contained in:
Henrik Lissner 2020-08-02 01:33:51 -04:00
parent de343fd314
commit ffbd7b63bf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 2 additions and 12 deletions

View file

@ -40,14 +40,9 @@ when exporting org-mode to html."
:filter-args #'org-html-paragraph
(cl-destructuring-bind (paragraph contents info) args
(let* ((fix-regexp "[[:multibyte:]]")
(origin-contents
(replace-regexp-in-string
"<[Bb][Rr] */>"
""
contents))
(fixed-contents
(replace-regexp-in-string
(concat "\\(" fix-regexp "\\) *\n *\\(" fix-regexp "\\)")
"\\1\\2"
origin-contents)))
contents)))
(list paragraph fixed-contents info))))