Source blocks in tables with asciidoctor maven plugin 2.1.0

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

Source blocks in tables with asciidoctor maven plugin 2.1.0

Toch
Hello,

I have updated the asciidoctor Maven plugin to 2.1.0.

My .adoc files generate .html files.

From now on when I put a source block and immediately after a new record of a table, the grey source block is graphically "merged" into the new record, overriding the grid.

This did not happen in version 1.6.0.

How can I solve this problem? Does it depend on some attribute?

Thank you,
Davide
Reply | Threaded
Open this post in threaded view
|

Re: Source blocks in tables with asciidoctor maven plugin 2.1.0

mojavelinux
Administrator
Can you please provide a concrete, reproducible example?

-Dan

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Source blocks in tables with asciidoctor maven plugin 2.1.0

Toch
Hello,

sure:

example_adoc.png

From the source:


[%autowidth]
[cols=3, options="header"]
|===
^|STEP
^|ACTIVITY DESCRIPTION
^|MINs

[...]

Then check value again (now must be “true”):

[source,sql,subs="attributes,verbatim"]
----
select value
from system_properties
where name = 'XXXXXX';
----

|0-5

|{counter:major-release}
a|Copy the rpm file released in `{path}` directory to the server:

`XXXXXX-{version}_{release}-{build}.i386.rpm`
|

Thanks,
Davide
Reply | Threaded
Open this post in threaded view
|

Re: Source blocks in tables with asciidoctor maven plugin 2.1.0

mojavelinux
Administrator
This is an old issue that was resolved in 2.0.11. See https://github.com/asciidoctor/asciidoctor/issues/3370. Please verify you are using the latest version of Asciidoctor, which is 2.0.15.

{asciidoctor-version}

I noticed that you are using a mix of legacy syntax. The table attributes should be expressed as follows:

[%autowidth%header,cols=3*]

When modifying subs on a verbatim block, incremental subs are preferred:

[subs=attributes+]

And in Asciidoctor 2, you no longer need to specify the source style on a listing block if a language is specified:

[,sql,subs=attributes+]
----
...
----

Best Regards,

-Dan

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Source blocks in tables with asciidoctor maven plugin 2.1.0

Toch
Thank you.

How can I tell which version of Asciidoctor (i.e. 2.0.15) corresponds to a version of the asciidoctor Maven plugin?

Is the 2.0.15 version the same for both?

Because I'm using the last one:

https://github.com/asciidoctor/asciidoctor-maven-plugin/releases

Thank you again,
Davide
Reply | Threaded
Open this post in threaded view
|

Re: Source blocks in tables with asciidoctor maven plugin 2.1.0

mojavelinux
Administrator
You can set which version of AsciidoctorJ the Maven plugin uses by following this example:


The version of Asciidoctor that AsciidoctorJ bundles is stated in the release notes.


Best Regards,

-Dan

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux