Properly print escaped strings in commands files
This commit is contained in:
parent
aaef928049
commit
e687f473f6
1 changed files with 12 additions and 14 deletions
|
|
@ -158,23 +158,21 @@
|
|||
|
||||
(defmethod serialize-command ((command command-modify-text) stream)
|
||||
(with-slots (before-text after-text) command
|
||||
(princ " :before-text \"" stream)
|
||||
(princ before-text stream)
|
||||
(princ "\" :after-text \"" stream)
|
||||
(princ after-text stream)
|
||||
(princ "\"" stream)))
|
||||
(princ " :before-text " stream)
|
||||
(prin1 before-text stream)
|
||||
(princ " :after-text " stream)
|
||||
(prin1 after-text stream)))
|
||||
|
||||
(defmethod serialize-command ((command command-join/split-node) stream)
|
||||
(with-slots (previous-text previous-eol next-text next-eol) command
|
||||
(princ " :previous-text \"" stream)
|
||||
(princ previous-text stream)
|
||||
(princ "\" :previous-eol \"" stream)
|
||||
(princ previous-eol stream)
|
||||
(princ "\" :next-text \"" stream)
|
||||
(princ next-text stream)
|
||||
(princ "\" :next-eol \"" stream)
|
||||
(princ next-eol stream)
|
||||
(princ "\"" stream)))
|
||||
(princ " :previous-text " stream)
|
||||
(prin1 previous-text stream)
|
||||
(princ " :previous-eol " stream)
|
||||
(prin1 previous-eol stream)
|
||||
(princ " :next-text " stream)
|
||||
(prin1 next-text stream)
|
||||
(princ " :next-eol " stream)
|
||||
(prin1 next-eol stream)))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue