ox-confluence: Do not generate filled paragraphs

* contrib/lisp/ox-confluence.el: (org-confluence-paragraph): New function.
(confluence): Use new function.

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).
This commit is contained in:
M. P. Ashton 2016-03-16 22:35:36 +01:00 committed by Nicolas Goaziou
parent 9c2e8a7988
commit 9879c20a34
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,7 @@
(italic . org-confluence-italic) (italic . org-confluence-italic)
(item . org-confluence-item) (item . org-confluence-item)
(link . org-confluence-link) (link . org-confluence-link)
(paragraph . org-confluence-paragraph)
(property-drawer . org-confluence-property-drawer) (property-drawer . org-confluence-property-drawer)
(section . org-confluence-section) (section . org-confluence-section)
(src-block . org-confluence-src-block) (src-block . org-confluence-src-block)
@ -101,6 +102,12 @@
raw-link)) raw-link))
"]"))) "]")))
(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-property-drawer (property-drawer contents info) (defun org-confluence-property-drawer (property-drawer contents info)
(and (org-string-nw-p contents) (and (org-string-nw-p contents)
(format "\{\{%s\}\}" contents))) (format "\{\{%s\}\}" contents)))