<?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 Re: DIV tags around ODS HTML5 output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953596#M26788</link>
    <description>&lt;P&gt;I tried but failed with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html5 body="test.html" path="Q:\junk" style=styles.default;
proc odstext;
h1 "This is an H1 header" /style=[padding=3px];
run;
ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This adds padding to the h1&amp;nbsp; tag, but does not effect the div tag:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;div style="padding-bottom: 8px; padding-top: 1px"&amp;gt;
&amp;lt;h1 class="heading1" style="padding: 3px"&amp;gt;This is an H1 header&amp;lt;/h1&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/PRE&gt;</description>
    <pubDate>Sat, 14 Dec 2024 21:55:05 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2024-12-14T21:55:05Z</dc:date>
    <item>
      <title>DIV tags around ODS HTML5 output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953536#M26787</link>
      <description>&lt;P&gt;When I submit this little program...&lt;/P&gt;
&lt;P&gt;=======================================================&lt;/P&gt;
&lt;P&gt;ods html5 body="test.html" path="c:\temp" style=styles.default;&lt;BR /&gt;proc odstext;&lt;BR /&gt;h1 "This is an H1 header";&lt;BR /&gt;run;&lt;BR /&gt;proc odstext;&lt;BR /&gt;h2 "This is an H2 header";&lt;BR /&gt;run;&lt;BR /&gt;proc print data=sashelp.class(obs=5);&lt;BR /&gt;run;&lt;BR /&gt;ods html5 close;&lt;/P&gt;
&lt;P&gt;=======================================================&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...the resulting HTML has multiple DIV tags around the output.&amp;nbsp; For example, around the H1 header:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;div style="padding-bottom: 8px; padding-top: 1px"&amp;gt;&lt;BR /&gt;&amp;lt;div id="IDX" style="padding-bottom: 8px; padding-top: 1px"&amp;gt;&lt;BR /&gt;&amp;lt;h1 class="heading1"&amp;gt;This is an H1 header&amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar DIVs are around the H2 heading and the table.&amp;nbsp; The 8px padding above and below everything really messes up the spacing of the output.&amp;nbsp; I don't see anything in the template specifying 8px padding.&amp;nbsp; If I manually edit the HTML and either remove the DIVs or set the padding to 0, things are okay.&amp;nbsp; Is there a way to change what SAS puts out there?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 17:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953536#M26787</guid>
      <dc:creator>PeteLund</dc:creator>
      <dc:date>2024-12-13T17:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: DIV tags around ODS HTML5 output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953596#M26788</link>
      <description>&lt;P&gt;I tried but failed with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html5 body="test.html" path="Q:\junk" style=styles.default;
proc odstext;
h1 "This is an H1 header" /style=[padding=3px];
run;
ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This adds padding to the h1&amp;nbsp; tag, but does not effect the div tag:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;div style="padding-bottom: 8px; padding-top: 1px"&amp;gt;
&amp;lt;h1 class="heading1" style="padding: 3px"&amp;gt;This is an H1 header&amp;lt;/h1&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Dec 2024 21:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953596#M26788</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-12-14T21:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: DIV tags around ODS HTML5 output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953622#M26789</link>
      <description>&lt;P&gt;SAS passes tags as-is when they open and close a string such as a title.&lt;/P&gt;
&lt;P&gt;How about simply something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title '&amp;lt;h1 style="padding: 3px"&amp;gt;This is an H1 header&amp;lt;/h1&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;proc odstext&lt;/CODE&gt; &lt;EM&gt;will&lt;/EM&gt; add DIVs. &lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;proc template&lt;/CODE&gt; might be able to change that, I don't know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 05:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/DIV-tags-around-ODS-HTML5-output/m-p/953622#M26789</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-12-16T05:25:57Z</dc:date>
    </item>
  </channel>
</rss>

