aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Brautaset <sbrautaset@laterpay.net>2016-02-26 09:55:21 +0000
committerStig Brautaset <sbrautaset@laterpay.net>2016-02-26 09:55:21 +0000
commitc5f49ecc458c8b12d0f043260db13a6c730df24c (patch)
tree74eec42625a3be289d34919ee17badb03e8906ca
parentff66e33ca80cbedd8f2ce92e6f3026c370262747 (diff)
Reflow paragraphs properly when each line has leading space
-rw-r--r--ox-jira.el2
-rw-r--r--ox-jira.org2
-rw-r--r--test/ox-jira-test.el6
-rw-r--r--test/ox-jira-test.org6
4 files changed, 8 insertions, 8 deletions
diff --git a/ox-jira.el b/ox-jira.el
index d1e802b..facf78b 100644
--- a/ox-jira.el
+++ b/ox-jira.el
@@ -174,7 +174,7 @@ channel."
"Transcode a PARAGRAPH element from Org to JIRA.
CONTENTS is the contents of the paragraph, as a string. INFO is
the plist used as a communication channel."
- (replace-regexp-in-string "\n[^\']" " " contents))
+ (replace-regexp-in-string "\n\\([^\']\\)" " \\1" contents))
(defun org-jira-plain-list (plain-list contents info)
"Transcode PLAIN-LIST from Org to JIRA.
diff --git a/ox-jira.org b/ox-jira.org
index 257ca88..e4b2d16 100644
--- a/ox-jira.org
+++ b/ox-jira.org
@@ -339,7 +339,7 @@
"Transcode a PARAGRAPH element from Org to JIRA.
CONTENTS is the contents of the paragraph, as a string. INFO is
the plist used as a communication channel."
- (replace-regexp-in-string "\n[^\']" " " contents))
+ (replace-regexp-in-string "\n\\([^\']\\)" " \\1" contents))
#+END_SRC
*** Plain lists
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index 0accb67..bcf0ed2 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -72,9 +72,9 @@ h3. third level
(ert-deftest ox-jira-test/paragraphs ()
(should (equal "fi fo fa fum\n" (org-export-string-as "fi
-,fo
-,fa
-,fum" 'jira))))
+fo
+fa
+fum" 'jira))))
(ert-deftest ox-jira-test/unordered-lists()
(should (equal "- fi
diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org
index 9d54f41..6ff6985 100644
--- a/test/ox-jira-test.org
+++ b/test/ox-jira-test.org
@@ -145,9 +145,9 @@
#+BEGIN_SRC emacs-lisp
(ert-deftest ox-jira-test/paragraphs ()
(should (equal "fi fo fa fum\n" (org-export-string-as "fi
- ,fo
- ,fa
- ,fum" 'jira))))
+ fo
+ fa
+ fum" 'jira))))
#+END_SRC
** Plain lists