Skip to content

#fmt "%?" does not print newline escape char #1890

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

Closed
erickt opened this issue Feb 23, 2012 · 2 comments
Closed

#fmt "%?" does not print newline escape char #1890

erickt opened this issue Feb 23, 2012 · 2 comments
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@erickt
Copy link
Contributor

erickt commented Feb 23, 2012

The polymorphic printer for strings does not print out escape characters like \n. Instead it uses the \x0a form. Here's a demonstration:

fn main() {
    #error("%?", "foo\nbar");
}

displays rust: ""foo\x0abar""

@brson
Copy link
Contributor

brson commented Feb 29, 2012

@erickt This is done?

@erickt
Copy link
Contributor Author

erickt commented Mar 1, 2012

Yep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants