[dssslist] how to handle textobject like a picture?

Subject: [dssslist] how to handle textobject like a picture?
From: Tuukka Mäkinen <tukem@xxxxxx>
Date: Mon, 15 Nov 2004 17:41:32 +0200
Hi everyone

What would be the best way to keep short codelistings on one page? My code examples are structured in a following way:

<mediaobject>
  <textobject>
    <programlisting></programlisting>
  </textobject>
</mediaobject>

With default behavior I have e.g a function ending "}" on top of the page. Not very nice. I have used mediaobject with my examples so that I could use caption like "Picture 5.1 Example of bad code" under the code. Suggestions on what to edit and how?

-Tuukka

Current Thread