Skip to content

#include fails with a space in the file name #2812

@tompkins-ct

Description

@tompkins-ct

Problem

When using {{#include file}}, if the file name has a space if fails to find the file and include it

Confirmed that path was correct with multiple files.

Tried

{{#include ../source/fila a.md}}
{{#include ../source/fila%20a.md}}
{{#include <../source/fila a.md>}}

Steps

  1. add include for file with space
  2. get error: Error Updating ... Could not read file for link
  3. [WARN] No such file or directory

Possible Solution(s)

No response

Notes

using macOS 15.2

Version

mdbook v0.4.52

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-link-preprocessorArea: Link preprocessor, #{{include}}, etc.C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions