AsciidocFX icon indicating copy to clipboard operation
AsciidocFX copied to clipboard

When using '+' in path for sample book, the created links in preview replaced '+' with space (url encoding?)

Open mxrenkin opened this issue 6 years ago • 2 comments

When creating an instance of the sample book, one has to choose the directoy to store it. If the chosen path contains a '+' sign, creation is working well, but the links to subpages shown at the right side have replaced the plus by a space and are not working. (the created wrong paths are shown in the log message at the bottom)

mxrenkin avatar Jan 09 '19 20:01 mxrenkin

Ops, can you please share some screenshot or steps to reproduce ?

Thanks for reporting

rahmanusta avatar Jan 09 '19 22:01 rahmanusta

I am using AsciidocFX 1.6.9 (calling it AFX below) on linux and win10 (without any change in config after installation) Steps to reproduce:

  • Start AFX. Workdir browser (left area) is active. In the icon/button bar at the upper left, the 4th button is labeled with [...] and down-arrow.

  • When klicking, a menu is shown, 2nd entry is 'sample book'.

  • After klicking at 'sample book', a directory chooser is shown.

  • Let us open a directory '/home/myuser/test/dir-with+in-name/mybook' to store the sample book (in windows: 'C:\Users\myuser\test\dir-with+in-name\mybook').

  • Now the sample book is generated and stored within the given directory. All seems to be ok.

  • The 'book.adoc' file is opened automatically, the screen is splitted - left the code, right the preview - in this case all the includes are shown as klickable, underlined links.

  • As soon as I click one of them, lets say 'colophon.adoc', not that file is opened, but in the log message bar at the bottom of the window the following message (I added color info as text) is shown: 'Log' (in red color) 'Path /home/myuser/test/dir-with in-name/mybook not found in the filesystem' you see the '+' is replaced by ' ' (space) In windows the same - the message is: 'Log' (in black color) 'C:\Users\myuser\test\dir-with in-name\mybook'

Hope that helps to reproduce.

mxrenkin avatar Jan 11 '19 07:01 mxrenkin