[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
Hi,
I have attached a small patch that makes LaTeX export use the same
regular expression as HTML export for identifying horizontal lines.
The regular expression used in HTML export seems more useful, since it
allows for leading whitespace, which is for instance introduced by
auto-indenting the buffer.
Best regards,
Valentin
[-- Attachment #2: org-latex.el.diff --]
[-- Type: application/octet-stream, Size: 501 bytes --]
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index ecaf1c0..242b001 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -2261,7 +2261,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
;; Convert horizontal rules
(goto-char (point-min))
- (while (re-search-forward "^----+.$" nil t)
+ (while (re-search-forward "^[ \t]*-\\{5,\\}[ \t]*$" nil t)
(org-if-unprotected
(replace-match (org-export-latex-protect-string "\\hrule") t t)))
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode