diff --git a/doc/org.texi b/doc/org.texi index 10b1eedba..c6232edf6 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -1378,8 +1378,9 @@ Org-mode supports the creation of footnotes. In contrast to the larger document, not only for one-off documents like emails. The basic syntax is similar to the one used by @file{footnote.el}, i.e. a footnote is defined in a paragraph that is started by a footnote marker in square -brackets in column 0, no indentation allowed. The footnote reference is -simply the marker in square brackets, inside text. For example: +brackets in column 0, no indentation allowed. If you need a paragraph break +inside a footnote, use the LaTeX idiom @samp{\par}. The footnote reference +is simply the marker in square brackets, inside text. For example: @example The Org homepage[fn:1] now looks a lot better than it used to. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f48f5b90b..dc627cecc 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2009-01-25 Carsten Dominik + * org-exp.el (org-export-as-html): Turn \par into a paragraph. + * org.el (org-agenda-tags-todo-honor-ignore-options): Declare variable. diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 3bea13c69..412de2585 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -3884,6 +3884,13 @@ lang=\"%s\" xml:lang=\"%s\"> (org-export-preserve-breaks (setq line (concat line "
")))) + ;; Check if a paragraph should be started + (while (and org-par-open + (string-match "\\\\par\\>" line)) + ;; Leave a space in the

so that the footnote matcher + ;; does not see this. + (setq line (replace-match "

" t t line))) + (insert line "\n"))))) ;; Properly close all local lists and other lists