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
|
@ -40,14 +40,9 @@ when exporting org-mode to html."
|
||||||
:filter-args #'org-html-paragraph
|
:filter-args #'org-html-paragraph
|
||||||
(cl-destructuring-bind (paragraph contents info) args
|
(cl-destructuring-bind (paragraph contents info) args
|
||||||
(let* ((fix-regexp "[[:multibyte:]]")
|
(let* ((fix-regexp "[[:multibyte:]]")
|
||||||
(origin-contents
|
|
||||||
(replace-regexp-in-string
|
|
||||||
"<[Bb][Rr] */>"
|
|
||||||
""
|
|
||||||
contents))
|
|
||||||
(fixed-contents
|
(fixed-contents
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
(concat "\\(" fix-regexp "\\) *\n *\\(" fix-regexp "\\)")
|
(concat "\\(" fix-regexp "\\) *\n *\\(" fix-regexp "\\)")
|
||||||
"\\1\\2"
|
"\\1\\2"
|
||||||
origin-contents)))
|
contents)))
|
||||||
(list paragraph fixed-contents info))))
|
(list paragraph fixed-contents info))))
|
||||||
|
|
|
@ -47,14 +47,9 @@ when exporting org-mode to html."
|
||||||
:filter-args #'org-html-paragraph
|
:filter-args #'org-html-paragraph
|
||||||
(cl-destructuring-bind (paragraph contents info) args
|
(cl-destructuring-bind (paragraph contents info) args
|
||||||
(let* ((fix-regexp "[[:multibyte:]]")
|
(let* ((fix-regexp "[[:multibyte:]]")
|
||||||
(origin-contents
|
|
||||||
(replace-regexp-in-string
|
|
||||||
"<[Bb][Rr] */>"
|
|
||||||
""
|
|
||||||
contents))
|
|
||||||
(fixed-contents
|
(fixed-contents
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
(concat "\\(" fix-regexp "\\) *\n *\\(" fix-regexp "\\)")
|
(concat "\\(" fix-regexp "\\) *\n *\\(" fix-regexp "\\)")
|
||||||
"\\1\\2"
|
"\\1\\2"
|
||||||
origin-contents)))
|
contents)))
|
||||||
(list paragraph fixed-contents info))))
|
(list paragraph fixed-contents info))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue