asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.88k stars 297 forks source link

Old tree syntax generate folders as files #455

Open bcouetil opened 4 years ago

bcouetil commented 4 years ago

First of all, thank you for this wonderful tool 😄

Version 1.7.1 on Windows.

Copied the text from the documentation, old tree syntax (since new syntax does not work anymore on my side, see #440 ) :

[tree,file="tree-view.png"]
--
#src
##main
###java
####com
#####kodcu
######App.java
###resources
####css
#####style.css
####js
#####script.js
####images
#####image.png
--

Folders are represented as files, and the first one is smaller :

image

CsrRk commented 4 years ago

I experience the same here, with the version 1.7.1 too, and openjdk 12.0.1.

For the representation of folders and files, while the name of folder is not precised, it appears as a folder, but when we set the name, it turns into a file.

AsciidocFX_filetree

AsciidocFX_filetree_2

naltatis commented 4 years ago

Have the same issue. Any workarounds for this? Also tried running version 1.7.0 but got the same result. The icons only seems to be a folder when there's no name or the name only consists of / or . characters.

rahmanusta commented 3 years ago

New release is available https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4 Please check if that fix your issue.