mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-23 07:18:53 +00:00
ox-ascii: Tiny fix
* lisp/ox-ascii.el (org-ascii--indent-string): Fix regexp to avoid stack overflow in regexp matcher on very long lines.
This commit is contained in:
parent
fc37d1020a
commit
ae8fd7a139
@ -455,7 +455,7 @@ HOW determines the type of justification: it can be `left',
|
||||
Empty lines are not indented."
|
||||
(when (stringp s)
|
||||
(replace-regexp-in-string
|
||||
"\\(^\\)\\(?:.*\\S-\\)" (make-string width ? ) s nil nil 1)))
|
||||
"\\(^\\)[ \t]*\\S-" (make-string width ?\s) s nil nil 1)))
|
||||
|
||||
(defun org-ascii--box-string (s info)
|
||||
"Return string S with a partial box to its left.
|
||||
|
Loading…
Reference in New Issue
Block a user