asciidoctor / brackets-asciidoc-preview

Live Preview of AsciiDoc for Adobe Brackets
MIT License
51 stars 16 forks source link

Relative file path includes an extra / #15

Closed Erik-P closed 9 years ago

Erik-P commented 9 years ago

When including a file that is in a neighboring directory, an extra step down in the tree needs to be taken.

For example, to include file.asciidoc in index.asciidoc: D:/path/manual/index.asciidoc D:/path/common/file.asciidoc

the include needs to look like this: include::../../file.asciidoc

But for the file to be included when processed, the path must look like this: include::../file.asciidoc which produces a Warning in AsciiDoc Preview: asciidoctor: WARNING: : line 50: include file not readable D:/path/manual//../common/file.asciidoc Note the two slashes following manual in the warning.

Running on Windows 7.

Regards, Erik

nerk commented 9 years ago

BTW, thanks for reporting the issue!