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

Format characters in field "Description" are causing problems #18

Closed
oliver006 opened this issue Mar 30, 2015 · 1 comment
Closed

Format characters in field "Description" are causing problems #18

oliver006 opened this issue Mar 30, 2015 · 1 comment

Comments

@oliver006
Copy link

If I use a string in Item.Description that contains format strings like %s the output is broken, looks like something is trying to sprintf the description string

    &Item{
        Title:       "Limiting Concurrency in Go",
        Link:        &Link{Href: "http://jmoiron.net/blog/limiting-concurrency-in-go/"},

 -->    Description: "abcdee %s deeefffff",

        Author:      &Author{"Jason Moiron", "jmoiron@jmoiron.net"},
        Created:     now,
    },

in the RSS feed content is abcdee %!s(MISSING) deeefffff.
Real-world example for this would be urlencoded links.
Any suggestions as to what I can do to prevent the formatting to happen?

@kisielk
Copy link
Contributor

kisielk commented Aug 11, 2015

I added a test for this case in the above-mentioned commit and couldn't reproduce. If you are still able to reproduce the problem, please provide a test case.

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

No branches or pull requests

2 participants