[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] (fixed) ox-confluence.el: Do not generate filled paragraphs

From: M. P. Ashton
Subject: [O] [PATCH] (fixed) ox-confluence.el: Do not generate filled paragraphs
Date: Thu, 03 Mar 2016 16:55:45 -0500

* contrib/lisp/ox-confluence.el: Do not generate filled paragraphs

ox-confluence was generating filled paragraphs.  Since Confluence treats
each newline as a line break, this caused unexpected formatting.  Added
a paragraph function to generate unfilled paragraphs (taken from
 contrib/lisp/ox-confluence.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/contrib/lisp/ox-confluence.el
index 9b96d5f..4304e5d 100644
--- a/contrib/lisp/ox-confluence.el
+++ b/contrib/lisp/ox-confluence.el
@@ -47,6 +47,7 @@
                     (italic . org-confluence-italic)
                      (item . org-confluence-item)
                     (link . org-confluence-link)
+                     (paragraph . org-confluence-paragraph)
                     (property-drawer . org-confluence-property-drawer)
                     (section . org-confluence-section)
                     (src-block . org-confluence-src-block)
@@ -58,6 +59,12 @@
                     (underline . org-confluence-underline)))

 ;; All the functions we use
+(defun org-confluence-paragraph (paragraph contents info)
+  "Transcode PARAGRAPH element for Confluence.
+CONTENTS is the paragraph contents.  INFO is a plist used as
+a communication channel."
+  contents)
 (defun org-confluence-bold (bold contents info)
   (format "*%s*" contents))

(previous patch was cut off)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]