emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] (fixed) ox-confluence.el: Do not generate filled paragraphs
@ 2016-03-03 21:55 M. P. Ashton
  2016-03-04  0:42 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: M. P. Ashton @ 2016-03-03 21:55 UTC (permalink / raw)
  To: emacs-orgmode

* 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
ox-md.el).
---
 contrib/lisp/ox-confluence.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/contrib/lisp/ox-confluence.el
b/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)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-16 21:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03 21:55 [PATCH] (fixed) ox-confluence.el: Do not generate filled paragraphs M. P. Ashton
2016-03-04  0:42 ` Nicolas Goaziou
2016-03-04  2:41   ` M. P. Ashton
2016-03-04 10:20     ` Sébastien Delafond
2016-03-16 21:37     ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).