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

sexpdata.dumps(tree, pretty_print=True) produces strange output with big data #57

Open
olisnr opened this issue Jul 2, 2024 · 1 comment

Comments

@olisnr
Copy link

olisnr commented Jul 2, 2024

when i use sexpdata to read eeschem-files (like https://github.com/snhobbs/eeschema-script-control does) that include images, then writing this sexpdata back to a new file renders it useless for eeschem (https://www.kicad.org/discover/schematic-capture/).

the problem is, that whiel eeschem puts the image in many lines, the sexpdata.dumps(tree, pretty_print=True) dose not. or in short, the CR and/or LF are missing.

its easy to see in the picture:
Screenshot from 2024-07-02 23-27-29

top is the original file and bottom is the read into sexpdata and write again file.

@olisnr
Copy link
Author

olisnr commented Jul 3, 2024

thats the demo-sw

format_test.py.zip

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

1 participant