Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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