Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html escapting consistent with the wrapper tag: <tt> or <pre> #13

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

avodonosov
Copy link
Contributor

Fixes #6

@avodonosov avodonosov changed the title html escapting consisten with the wrapper tag: <tt> or <pre> html escapting consistent with the wrapper tag: <tt> or <pre> Oct 22, 2022
@@ -283,9 +283,13 @@
(mapcar color-formatter scan)
(funcall (coloring-type-formatter-after-hook coloring-type-object)))))

(defun encoder-fn (encoder)
(or (find-symbol (princ-to-string encoder) :html-encode)
(error "Unable to find encoder function ~A in the html-encode package" encoder)))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signalling the error here is easier to debug than if we allow NIL to be returned and fail later at (funcall encoder-fn token)

@kingcons kingcons merged commit f5ed4b3 into kingcons:master Jan 2, 2023
@kingcons
Copy link
Owner

kingcons commented Jan 2, 2023

Thanks for the patch, sorry for delay in merging. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

why the result doesn't contains <br> ?
2 participants