Skip to content

empty lines at end of certain files cause parse to fail #31

Closed
@poldrack

Description

@poldrack

Describe the bug

The presence of three empty lines at the end of a particular file causes the build to break.

To Reproduce

Steps to reproduce the behavior:

  1. Clone https://github.com/poldrack/psych-open-science-guide
  2. "jb build guide" should work properly
  3. Add two additional line feeds to the end of guide/4_reproducibleanalysis.md
  4. "jb build guide" should now fail with an error.

Expected behavior

When the extra lines are added, the follow Exception occurs:

Environment

  • Python 3.8.3

  • output of jupyter-book --version:
    Jupyter Book: 0.7.3
    MyST-NB: 0.8.4
    Sphinx Book Theme: 0.0.33
    MyST-Parser: 0.9.0
    Jupyter-Cache: 0.2.2

  • Operating System: Mac OS X

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions