<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Right align in footnote generates two equal table cells and causes unnecessary word wrap in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566129#M22859</link>
    <description>&lt;P&gt;I want a footnote in my output with a left-aligned long text string and a small right-aligned image. I can do this with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';
footnote1 "Very long text which wraps half-way across the page because of a design error" justify=right "^{style [postimage='image.png']}";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works the same in both HTML and PDF. The text wraps half-way across the page. It looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Very long text which wraps half-way across the page because of a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [image]&lt;BR /&gt;design error&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On inspecting the HTML I can see that SAS generates a table with two cells in this case. The widths are fixed at 50% each. In my view this is a design error. The widths should adapt to the contents with the auto table layout algorithm of CSS. A better solution would be to implement the separately aligned text strings with HTML SPAN elements and CSS style text-align, which can be left, center and right. Exactly the same applies to a title as it is also a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to work around this with no success. In HTML with CSS it is trivially simple to make an image or inline text&amp;nbsp;float right. As I want this to work in HTML and PDF I have to use SAS's complex ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a way to make ODS float an image right in a footnote without causing the footnote to be split into two table cells?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version: SAS 9.4M5 64-bit on Windows 10.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 08:39:28 GMT</pubDate>
    <dc:creator>Peter_L</dc:creator>
    <dc:date>2019-06-14T08:39:28Z</dc:date>
    <item>
      <title>Right align in footnote generates two equal table cells and causes unnecessary word wrap</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566129#M22859</link>
      <description>&lt;P&gt;I want a footnote in my output with a left-aligned long text string and a small right-aligned image. I can do this with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';
footnote1 "Very long text which wraps half-way across the page because of a design error" justify=right "^{style [postimage='image.png']}";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works the same in both HTML and PDF. The text wraps half-way across the page. It looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Very long text which wraps half-way across the page because of a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [image]&lt;BR /&gt;design error&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On inspecting the HTML I can see that SAS generates a table with two cells in this case. The widths are fixed at 50% each. In my view this is a design error. The widths should adapt to the contents with the auto table layout algorithm of CSS. A better solution would be to implement the separately aligned text strings with HTML SPAN elements and CSS style text-align, which can be left, center and right. Exactly the same applies to a title as it is also a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to work around this with no success. In HTML with CSS it is trivially simple to make an image or inline text&amp;nbsp;float right. As I want this to work in HTML and PDF I have to use SAS's complex ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a way to make ODS float an image right in a footnote without causing the footnote to be split into two table cells?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version: SAS 9.4M5 64-bit on Windows 10.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 08:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566129#M22859</guid>
      <dc:creator>Peter_L</dc:creator>
      <dc:date>2019-06-14T08:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Right align in footnote generates two equal table cells and causes unnecessary word wrap</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566264#M22860</link>
      <description>&lt;P&gt;Have you tried putting the image on a separate line below the main footer text? Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';
footnote1 "Very long text which wraps half-way across the page because of a design error";
footnote2 justify=right "^{style [postimage='image.png']}";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From my own testing, it looks like that should accomplish what you are attempting to achieve.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 19:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566264#M22860</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-06-14T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Right align in footnote generates two equal table cells and causes unnecessary word wrap</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566510#M22861</link>
      <description>Thanks for investigating this. I had realised that the image could go on a separate line. My use case requires it on the same line as the text.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jun 2019 08:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Right-align-in-footnote-generates-two-equal-table-cells-and/m-p/566510#M22861</guid>
      <dc:creator>Peter_L</dc:creator>
      <dc:date>2019-06-17T08:54:17Z</dc:date>
    </item>
  </channel>
</rss>

