Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

decode same toml at mac osx & linux os, the result is different #77

Closed
liujianping opened this issue Mar 26, 2015 · 6 comments
Closed

Comments

@liujianping
Copy link

title = "subject"
active = "home"

mac osx decode with result:
map[meta:map[title:subject active:home]

linux decode with result:
map[meta:map[title:"subject" active:"home"]

so, when i get .meta.active at template, the value is different at different os....

@BurntSushi
Copy link
Owner

Please provide enough information for someone else to reproduce your problem. In particular, can you show your code?

@liujianping
Copy link
Author

you can use the same toml config file,the content like:

title = "subject"
active = "home"

so, when i decode from mac osx, get the
map[title:subject active:home]

but decode from linux, get
map[title:"subject" active:"home"]

from the result , you can find the difference,

at osx, title is a string, which value is subject
but at linux,title is a string, too, but value is "subject", with quotes characters

@BurntSushi
Copy link
Owner

Can you please show your code?

@liujianping
Copy link
Author

go get github.com/h2object/markdown-pager
go test @different os, get the string value is different.

@BurntSushi
Copy link
Owner

If you could post a minimally reproducible sample of code here in this issue, then that would be great.

@liujianping
Copy link
Author

with minimal test, it seems the result is right. I'll check my code , thanks for your patience :)

ebrady pushed a commit to dvln/toml that referenced this issue Oct 24, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants