<?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 Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724478#M24897</link>
    <description>&lt;P&gt;I tried to use the style attribute TEXTINDENT in a proc report to indent some of the report lines. I used ODS ESCAPECHAR='^' and added the style attribute to the value of the character variable '^{Style [TEXTINDENT=8]' || var || '}'. It works as expected in PDF but for RTF the attribute produces 2 spaces regardless the value used. Even TEXTINDENT=0 results in 2 spaces. I've created a simple program to reproduce the issue. A colleague discovered that setting the attribute using the CALL DEFINE statement does work as expected. Is there any reason why RTF doesn't pick up the attribute when added to the value of&amp;nbsp; the variable?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 12:19:24 GMT</pubDate>
    <dc:creator>DaanDNR</dc:creator>
    <dc:date>2021-03-08T12:19:24Z</dc:date>
    <item>
      <title>Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724478#M24897</link>
      <description>&lt;P&gt;I tried to use the style attribute TEXTINDENT in a proc report to indent some of the report lines. I used ODS ESCAPECHAR='^' and added the style attribute to the value of the character variable '^{Style [TEXTINDENT=8]' || var || '}'. It works as expected in PDF but for RTF the attribute produces 2 spaces regardless the value used. Even TEXTINDENT=0 results in 2 spaces. I've created a simple program to reproduce the issue. A colleague discovered that setting the attribute using the CALL DEFINE statement does work as expected. Is there any reason why RTF doesn't pick up the attribute when added to the value of&amp;nbsp; the variable?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 12:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724478#M24897</guid>
      <dc:creator>DaanDNR</dc:creator>
      <dc:date>2021-03-08T12:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724499#M24899</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Try specifying a unit of measure ... not just 8, but .5in or .25in -- the reason is that RTF/WORD need to translate all your units for textindent into TWIPS (twentieths of a printers point), so without any unit, I thought the default was pixels. I have always found the indent and leftmargin attributes work best with a definite unit of measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 13:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724499#M24899</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-03-08T13:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724505#M24900</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;I tried to add mm as unit. To my surprise SAS accepted the unit (according to the SAS help n specifies the number of spaces). However the result is more or less the same. Where I used the style attribute in the value of the variable the indentation in RTF is two spaces regardless of the number of spaces defined. The indentation coming from the define statement replaces the number of spaces with a tab with the specified width. I'm on SAS 9.4M6 (LSAF 5.2)&amp;nbsp; but I also noticed this behavior on PC SAS 9.4M5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724505#M24900</guid>
      <dc:creator>DaanDNR</dc:creator>
      <dc:date>2021-03-08T14:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724516#M24901</link>
      <description>Hi:&lt;BR /&gt;  If you are using a unit of measure and not getting more than 2 spaces as an indent, then you need to open a track with Tech Support because this is something that will need to be investigated in greater depth.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 08 Mar 2021 14:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724516#M24901</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-03-08T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724660#M24902</link>
      <description>&lt;P&gt;Open the RTF file in a text editor and see if you can find what RTF markup SAS is "writing".&amp;nbsp; Might help figure how it works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 21:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724660#M24902</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-03-08T21:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724812#M24903</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use the inline formatting in this form '^S={style-attribute=attribute-value} sample text', instead of&amp;nbsp;'^{style [style-attribute=attribute-value] sample text}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data txt;
  length var1 var2 $100;
  var1 = 'Line without indentation';
  var2=var1;
  output;
  do i = 0 to 80 by 8;
    var1 = '^S={TEXTINDENT=' || strip(put(i,2.)) ||'} Line with indent=' || strip(put(i,2.));
    var2 = 'Line with indent=' || strip(put(i,2.));
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 10:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724812#M24903</guid>
      <dc:creator>Athenkosi</dc:creator>
      <dc:date>2021-03-09T10:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724885#M24905</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I find the new style override syntax with ESCAPECHAR works for me in PDF, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1615302532528.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55732i8EADD9FF145CFEC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1615302532528.png" alt="Cynthia_sas_0-1615302532528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the same code does NOT work for RTF, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1615302586846.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55733iF1F2635EEF6CFEF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1615302586846.png" alt="Cynthia_sas_1-1615302586846.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And while the old style of ESCAPECHAR override did work with RTF:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_2-1615302896745.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55734iAACD20501B7EB001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_2-1615302896745.png" alt="Cynthia_sas_2-1615302896745.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't know how long the original syntax will continue to be supported, so this is why I think you need to work with Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/724885#M24905</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-03-09T15:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Style attribute TEXTINDENT produces 2 spaces in RTF regardless the value of the attribute?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/725391#M24906</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;Thanks for your support, I will contact support for clarification.&lt;/P&gt;&lt;P&gt;kr Daan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 09:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-attribute-TEXTINDENT-produces-2-spaces-in-RTF-regardless/m-p/725391#M24906</guid>
      <dc:creator>DaanDNR</dc:creator>
      <dc:date>2021-03-11T09:57:00Z</dc:date>
    </item>
  </channel>
</rss>

