Skip to content

Extraneous LF when stdout output #84

Closed
@kernc

Description

Any notebook; the following commands:

$ jupytext --to py example.ipynb
$ diff example.py <(jupytext --to py -o- example.ipynb)
28a29
> 

diff exits non-cleanly as -o- adds an additional newline. I believe end='' or sys.stdout.write()* here might fix it.

print(writes(notebook, ext=ext))


* Print function won't work without importing from __future__.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions