I see your point. But in XMLmind XML editor the footnote is presented as appearing on its own line. Thus, visually it implies a line break. Since it visually gives the impression of a line break, it would make sense if ditac inserted the white-space character for us. If I do as you say, namely first finish the <p> before I insert the <fn>, the visual result, in XXE, is that the line below the footnote starts with a space character. And that to me seems odd.

Leif Halvard Silli


On 19 Aug 2017, at 10:36, Hussein Shafie wrote:
On 08/18/2017 11:02 PM, Leif Halvard Silli wrote:
This conbody contains two <fn> footnote elements:

 <conbody>
   <p>I need to make a remark.<fn>This is the
   remark.</fn>Text continues …<fn>But as footnote:
   So does life.</fn>And voila. Fine!</p>
 </conbody>


If you remove the 2 <fn> child elements, your <p> contains:

<p>I need to make a remark.Text continues …And voila. Fine!</p>

which is not what you wanted to write because some space characters are obviously missing.




Ditac converts the above to HTML as follows:

 <div class="conbody">
  <div class="p">I need to make a remark.<a
      href="#I_d38e16_" class="fn-link"><sup
      class="fn-callout">(1)</sup></a>Text continues
      …<a
      href="#I_d38e19_" class="fn-link"><sup
      class="fn-callout">(2)</sup></a>And voila. Fine!
  </div>
 </div>

   ISSUE: Lack of whitespace after each <a/> element
          (the footnote links). Looks ugly in the HTML output.

SOLUTION: EITHER let the converter add the necessary whitespace
          character. OR let the converter include a CSS rule
          that inserts the  whitespace character:

          a.fn-link:after{content:" ";}


Not a bug.

The fact that your <p> contains <fn> child elements is not supposed to have any influence of the whitespace it contains.

This also applies to any other child element of <p>. For example, in your example, please replace <fn> by <i> and you'll have exactly the same issue.

SOLUTION: Write the content of your <p> normally, then insert <fn> in it.

--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to