-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Change serialization syntax #867
Conversation
string as following In previous version: string_param1 string_value string_param2 string value In this version: string_param1 "string_value" string_param2 "string\nvalue" I don't change serialization format for other types.
Because we use `element.v1_config == false` always.
opts[:type] | ||
end | ||
|
||
def dump_value(k, v, indent, nindent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to assign out = ""
at once and then do out << "..."
?
It looks good enough just to return string value by if
expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly.
I will fix this.
I've fixed and pushed. |
Merged! Thank you so much. |
string as following
In previous version:
string_param1 string_value
string_param2 string
value
In this version:
string_param1 "string_value"
string_param2 "string\nvalue"
I don't change serialization format for other types.
See #522