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

Unescaped $ when using show on Symbol #30303

Closed
omus opened this issue Dec 7, 2018 · 0 comments
Closed

Unescaped $ when using show on Symbol #30303

omus opened this issue Dec 7, 2018 · 0 comments
Assignees
Labels
display and printing Aesthetics and correctness of printed representations of objects.

Comments

@omus
Copy link
Member

omus commented Dec 7, 2018

The output here is trying to display the Julia code for creating the Symbol below but it fails to show that $ is escaped:

julia> Symbol("USD\$")
Symbol("USD$")

julia> Symbol("USD$")
ERROR: syntax: invalid interpolation syntax: "$""
@omus omus added the display and printing Aesthetics and correctness of printed representations of objects. label Dec 7, 2018
@JeffBezanson JeffBezanson self-assigned this Dec 7, 2018
@KristofferC KristofferC mentioned this issue Dec 7, 2018
52 tasks
KristofferC pushed a commit that referenced this issue Dec 9, 2018
* fix #30303, escaping $ when showing Symbols

* use repr instead of escape_string

(cherry picked from commit f0b9499)
KristofferC pushed a commit that referenced this issue Dec 30, 2018
* fix #30303, escaping $ when showing Symbols

* use repr instead of escape_string

(cherry picked from commit f0b9499)
@KristofferC KristofferC mentioned this issue Dec 30, 2018
53 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

No branches or pull requests

2 participants