org-latex.el: match horizontal rules with HTML regexp

Also a slight update of the manual about horizontal rules.
This commit is contained in:
Valentin Wüstholz 2011-02-10 17:03:31 +01:00 committed by Bastien Guerry
parent eba3bee3db
commit 39d5acd33c
2 changed files with 3 additions and 3 deletions

View File

@ -8688,8 +8688,8 @@ syntax; it is exported verbatim.
@node Horizontal rules, Comment lines, Emphasis and monospace, Structural markup elements @node Horizontal rules, Comment lines, Emphasis and monospace, Structural markup elements
@subheading Horizontal rules @subheading Horizontal rules
@cindex horizontal rules, markup rules @cindex horizontal rules, markup rules
A line consisting of only dashes, and at least 5 of them, will be A line consisting of only dashes, and at least 5 of them, will be exported as
exported as a horizontal line (@samp{<hr/>} in HTML). a horizontal line (@samp{<hr/>} in HTML and @code{\hrule} in @LaTeX{}).
@node Comment lines, , Horizontal rules, Structural markup elements @node Comment lines, , Horizontal rules, Structural markup elements
@subheading Comment lines @subheading Comment lines

View File

@ -2270,7 +2270,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
;; Convert horizontal rules ;; Convert horizontal rules
(goto-char (point-min)) (goto-char (point-min))
(while (re-search-forward "^----+.$" nil t) (while (re-search-forward "^[ \t]*-\\{5,\\}[ \t]*$" nil t)
(org-if-unprotected (org-if-unprotected
(replace-match (org-export-latex-protect-string "\\hrule") t t))) (replace-match (org-export-latex-protect-string "\\hrule") t t)))