Login  Register

Including a processing instruction in docbook <programlisting> output

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Including a processing instruction in docbook <programlisting> output

apnadkarni
This post was updated on May 04, 2017; 3:38pm.
I would like the docbook output for program listings to look like

  <programlisting>
  <?dbfo keep-together="always" ?>
  some wonderful code
  </programlisting>

This is to prevent the listing from splitting across pages. I was hoping to use passthrough for the purpose but cannot figure out how to get the processing instruction dbfo inside the programlisting block generated for listings from within asciidoctor. Is this even possible?


/Ashok