Skip to content

Commit

Permalink
Merge 81bf626 into 38240d1
Browse files Browse the repository at this point in the history
  • Loading branch information
profitware committed Feb 8, 2018
2 parents 38240d1 + 81bf626 commit 90e354d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -169,6 +169,7 @@ and run `M-x cm-test-mdarkdown-to-html`.

* [cm-test](https://github.com/kostafey/cm-test)
* [ejc-sql](https://github.com/kostafey/ejc-sql)
* [flower](https://github.com/PositiveTechnologies/flower)

## Requirements:

Expand Down
6 changes: 4 additions & 2 deletions src/elisp/clomacs.el
Expand Up @@ -120,9 +120,11 @@ If can't find any nREPL process return nil."
raw-string))

(defun clomacs-clean-result-string (return-string)
(s-replace-all '(("\\\"" . "\"")
(s-replace-all '(("\\\\" . "\\")
("\\\"" . "\"")
("\\n" . "\n")
("\\t" . "\t")) return-string))
("\\t" . "\t"))
return-string))

(defun clomacs-format-result (raw-string return-type)
"Format Elisp representation of Clojure evaluation result."
Expand Down
3 changes: 2 additions & 1 deletion test/clj/clomacs/cm_test.clj
Expand Up @@ -8,4 +8,5 @@

(defn text-with-newlines []
(str "Some text in the first line \n"
"and text in the new line."))
"and text in the new line. "
"Text with backslash and \\no new line."))
3 changes: 2 additions & 1 deletion test/elisp/clomacs-test.el
Expand Up @@ -77,7 +77,8 @@
(should (equal
(clomacs-test-text-with-newlines)
(concat "Some text in the first line \n"
"and text in the new line.")))
"and text in the new line. "
"Text with backslash and \\no new line.")))

(clomacs-defun clomacs-test-md-wrapper
my-md-to-html-string
Expand Down

0 comments on commit 90e354d

Please sign in to comment.