Fix docstring unescaping #42

Merged
merged 1 commit into from Jun 20, 2013

2 participants

@guns
Collaborator

Addresses #40

prettify used the cl-format ~A directive to print strings, then
re-surrounded them with quotes. This erroneously unescaped the string.

The proper way is to use the ~S directive to print the string as an
S-expression, escaping both quotes and backslashes to survive a (read)
correctly.

refer: https://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/clm/node200.html#SECTION002633000000000000000

@guns guns Fix docstring unescaping
Addresses #40

prettify used the cl-format ~A directive to print strings, then
re-surrounded them with quotes. This erroneously unescaped the string.

The proper way is to use the ~S directive to print the string as an
S-expression, escaping both quotes and backslashes to survive a (read)
correctly.

refer: https://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/clm/node200.html#SECTION002633000000000000000
e66a406
@technomancy technomancy merged commit e66a406 into technomancy:master Jun 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment