Page 1 of 1

Help forcing images on newline

Posted: Mon Sep 21, 2015 11:02 pm
by mslupesky
My laptop was stolen recently - everything was committed in Git repos so I didn't lose anything, except for my transform. Somehow, all my transformations from before the theft show images as appearing on a new line. But all my transformations after the theft show the images inline! The inline looks terrible for what I'm trying to do. I'm using the standard dita-otk, etc.

I think that I've tracked it down to something within the generation...particularly, one line of HTML.

"Good" versions look like this:

Code: Select all

<li class="li step stepexpand">
<span class="ph cmd">Remove the components</span>
<div class="itemgroup stepxmp">

<a class="xref" href="images/Image.jpg">
<img class="image" id="kyijktr4r__image_ktn_bvsdbm2v_js" src="thumbs/Image.jpg"/>
</a>

</div>
</li>
"Bad versions" look like this:

Code: Select all

<li class="li step stepexpand">
<span class="ph cmd">Remove the components</span>


<a class="xref" href="images/Image.jpg">
<img class="image" id="kyijktr4r__image_ktn_bvsdbm2v_js" src="thumbs/Image"/>
</a>


</li>
Notice that the "good" version wraps the a element within this <div class="itemgroup stepxmp">

Can anyone help me figure this out?

Re: Help forcing images on newline

Posted: Tue Sep 22, 2015 2:23 pm
by Radu
Hi,

Sorry about your laptop getting stolen.
Could you also post in a codeblock the content of the DITA task step which generates that HTML content?

Also you mention you are using the standard DITA OT. Are you using the DITA OT which comes bundled with Oxygen or an external DITA OT?
Did you have an older Oxygen version installed on your laptop? What Oxygen version are you currently using.

Regards,
Radu