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

"inplace" seems to remove a newline from the end of the file. #431

Open
mikevdg opened this issue Jun 6, 2022 · 1 comment
Open

"inplace" seems to remove a newline from the end of the file. #431

mikevdg opened this issue Jun 6, 2022 · 1 comment

Comments

@mikevdg
Copy link

mikevdg commented Jun 6, 2022

After running a script using "inplace", I appear to lose a newline character from the end of the file.

Running on Windows subsystem for Linux, Nix, unknown version of Turtle (because I haven't worked out how to do that yet.)

@Gabriella439
Copy link
Owner

Can you give an example reproduction? I was unable to reproduce for a sample input:

>>> writeTextFile "foo.txt" "abc\ndef\n"
>>> inplace chars1 "foo.txt"  -- Attempt to do nothing to the file, using `inplace`
>>> readTextFile "foo.txt"
"abc\ndef\n"

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