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:
parent
de343fd314
commit
ffbd7b63bf
2 changed files with 2 additions and 12 deletions
|
@ -47,14 +47,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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue