sphinx-contrib / plantuml

BSD 2-Clause "Simplified" License
113 stars 40 forks source link

No support with paths with whitespaces #66

Closed RedX2501 closed 2 years ago

RedX2501 commented 2 years ago

It seems that unlike the .. image:: directive the .. uml:: directive does not support spaces in the path.

The exact error is:

Error in "uml" directive:
maximum 1 argument(s) allowed, 4 supplied.

.. uml:: images/L3\ -\ Component\ Diagram.puml
   :caption: The caption

Is there a workaround for this (without removing the spaces from the path).

Example:

.. uml:: images/L3\ -\ Component\ Diagram.puml

Version: sphinxcontrib-plantuml 0.23

yuja commented 2 years ago

Fixed by be1db3e, but I recommend not using whitespace in filename.

docutils' arguments parsing looks borked, there's no proper syntax to quote/escape arguments. I have no idea why .. image:: <path> requires backslash escape even though it sets final_argument_whitespace.

RedX2501 commented 2 years ago

Thank you for the quick fix.

When can we expect a release?

yuja commented 2 years ago

When can we expect a release?

Done.