Using asciidoc-diagramm with plantuml/salt syntax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Using asciidoc-diagramm with plantuml/salt syntax

wimalopaan
Hi all,

plantuml has an included subproject called "salt".
It should be possible to draw a tree like this:

[plantuml,format="svg"]
----
salt
{T
+ A
++ a
+ B
++ b
}
----

Unfortunately I get a syntax error here. Suppose that the starting line "salt" isn't sent to plantuml.

Any hints here?

--
Wilhelm
Reply | Threaded
Open this post in threaded view
|

Re: Using asciidoc-diagramm with plantuml/salt syntax

mojavelinux
Administrator
That looks very promising! Perhaps you can file an issue against Asciidoctor Diagram because it looks like it may require either a code change or at least a clarification in the docs.

Cheers,

-Dan

On Fri, Mar 20, 2015 at 3:06 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

plantuml has an included subproject called "salt".
It should be possible to draw a tree like this:

[plantuml,format="svg"]
----
salt
{T
+ A
++ a
+ B
++ b
}
----

Unfortunately I get a syntax error here. Suppose that the starting line "salt" isn't sent to plantuml.

Any hints here?

--
Wilhelm



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Using-asciidoc-diagramm-with-plantuml-salt-syntax-tp2850.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Using asciidoc-diagramm with plantuml/salt syntax

mojavelinux
Administrator
In reply to this post by wimalopaan

On Fri, Mar 20, 2015 at 4:53 PM, Dan Allen <[hidden email]> wrote:
That looks very promising! Perhaps you can file an issue against Asciidoctor Diagram because it looks like it may require either a code change or at least a clarification in the docs.

Cheers,

-Dan

On Fri, Mar 20, 2015 at 3:06 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

plantuml has an included subproject called "salt".
It should be possible to draw a tree like this:

[plantuml,format="svg"]
----
salt
{T
+ A
++ a
+ B
++ b
}
----

Unfortunately I get a syntax error here. Suppose that the starting line "salt" isn't sent to plantuml.

Any hints here?

--
Wilhelm



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Using-asciidoc-diagramm-with-plantuml-salt-syntax-tp2850.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



--
Reply | Threaded
Open this post in threaded view
|

Re: Using asciidoc-diagramm with plantuml/salt syntax

wimalopaan
Good news: asciidoctor-diagramm 1.3.0.preview4 is available and that fixes this issue!
Reply | Threaded
Open this post in threaded view
|

Re: Using asciidoc-diagramm with plantuml/salt syntax

Robert.Panzer
Hi,

I did not get your sample running with 1.3.0.preview4.
But it works fine with extra braces:

[plantuml,format="svg"]
----
salt
{
{T
+ A
++ a
+ B
++ b
}
}
----

But this example also runs with 1.3.0.preview3.

Best regards,
Robert
Reply | Threaded
Open this post in threaded view
|

Re: Using asciidoc-diagramm with plantuml/salt syntax

mojavelinux
Administrator
It appears that two sets of curly braces are required. The following works for me using 1.3.0.preview.4

[salt,format="svg"]
----
{{T
+ src
++ main
+++ java
+++ test
}}
----

We can either decide to simply document this or perhaps find a way to eliminate the requirement for one of the sets of curly braces. I don't know the salt syntax well, so I'm not sure if that's assuming too much.

Cheers,

-Dan


On Mon, Mar 30, 2015 at 3:50 PM, Robert.Panzer [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I did not get your sample running with 1.3.0.preview4.
But it works fine with extra braces:

[plantuml,format="svg"]
----
salt
{
{T
+ A
++ a
+ B
++ b
}
}
----

But this example also runs with 1.3.0.preview3.

Best regards,
Robert


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Using-asciidoc-diagramm-with-plantuml-salt-syntax-tp2850p2867.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--