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

Don't call MarshalText() if MarshalYAML() has been called #58

Closed
wants to merge 1 commit into
base: v2
from

Conversation

Projects
None yet
1 participant
@ghodss

ghodss commented Nov 25, 2014

I found a really nasty bug where, if you have an object that implements both yaml.Unmarshaler and encoding.TextMarshaler, both are called back-to-back, creating incorrect output. This patch fixes it, with tests, and without breaking any existing tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment