Spaces in links?

0 votes
asked Jul 16, 2019 in Question / help by Jorge

Hello,

I guess this is probably more of a feature request than a question, but i will try anyway.

Is there any way to have spaces in links? I see in the docs the following examples:

I have been playing around with using quotation marks for the link, like so:

  • [[file:///path/to/my file.html This label is printed]]: This sets "file:///path/to/my" as the link, and rest as label.
  • [["file:///path/to/my file.html" "This label is printed"]]: This sets "file:///path/to/my file.html" both as link and label.
  • [['file:///path/to/my file.html' 'This label is printed']]: This sets "'file:///path/to/my" as the link and "file.html' 'This label is printed'" as label.
  • many other attempts, without success

As you can see i am trying to link to local filesystem paths that may contain spaces.

Is there any way to achieve this?

Thanks,

commented Feb 11, 2021 by Bruno (100 points)

Hi ! 
My English is... so... 

your question had help me with my own quetion !

juste put 20% in your link

[[file:///path/to/my20%file.html This label is printed]]

the result is : 

This label is printed

bye

Bruno

1 Answer

0 votes
answered Jul 16, 2019 by plantuml (294,960 points)
 
Best answer
Did you try to encode space as %20 ? It may work :

[[file:///path/to/my%20file.html This label is printed]]:
commented Jul 17, 2019 by Jorge
Bingo, thank you!
...