<?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: Inline formatting swallows a space when going to Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372428#M18894</link>
    <description>&lt;P&gt;Hi, Ben:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I do observe this behavior when using SAS 9.4 and ODS EXCEL (losing the space between words). I don't know why it's happening, but it seems to me that you've run across something to be reported to Tech Support. I do NOT lose the space in the default HTML destination or in TAGSETS.EXCELXP. And, it doesn't seem to matter whether I make the variable in an assignment statement or using the format. As you can see, I changed your program a bit as a test.&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;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10065i9E5BDA05853FA665/image-size/original?v=1.0&amp;amp;px=-1" alt="diff_behavior.png" title="diff_behavior.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jul 2017 16:22:02 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-07-01T16:22:02Z</dc:date>
    <item>
      <title>Inline formatting swallows a space when going to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/371403#M18872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm testing applying formatting to parts of a data line when generating an Excel spreadsheet. &amp;nbsp;The sample code below looks fine going to html but not to Excel--the 2nd test line has the space before Test drop out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone shed light on why this might be happening?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let path=c:\temp\;&lt;BR /&gt;proc format;&lt;BR /&gt; value $dumbplan 'Second Test' = 'Second^{style[fontstyle=italic] Test}';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data text;&lt;BR /&gt; input line $70.;&lt;BR /&gt; format line $dumbplan.;&lt;BR /&gt;cards;&lt;BR /&gt;First Test&lt;BR /&gt;Second Test&lt;BR /&gt;Third Test&lt;BR /&gt;;;;&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;BR /&gt;ods excel&lt;BR /&gt; options(sheet_name='Test' sheet_label=' ')&lt;BR /&gt; file="&amp;amp;path.mytest.xlsx";&lt;/P&gt;
&lt;P&gt;proc print data=text;&lt;BR /&gt;id line;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 17:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/371403#M18872</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-06-28T17:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inline formatting swallows a space when going to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372428#M18894</link>
      <description>&lt;P&gt;Hi, Ben:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I do observe this behavior when using SAS 9.4 and ODS EXCEL (losing the space between words). I don't know why it's happening, but it seems to me that you've run across something to be reported to Tech Support. I do NOT lose the space in the default HTML destination or in TAGSETS.EXCELXP. And, it doesn't seem to matter whether I make the variable in an assignment statement or using the format. As you can see, I changed your program a bit as a test.&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;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10065i9E5BDA05853FA665/image-size/original?v=1.0&amp;amp;px=-1" alt="diff_behavior.png" title="diff_behavior.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2017 16:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372428#M18894</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-07-01T16:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inline formatting swallows a space when going to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372436#M18895</link>
      <description>&lt;P&gt;Thanks, Cynthia!&amp;nbsp; Will run it by the TS folks and see what they say.&amp;nbsp; I'll post a final comment here after they track it down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2017 18:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372436#M18895</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-07-01T18:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inline formatting swallows a space when going to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372571#M18896</link>
      <description>&lt;P&gt;T.S. responded; this is a defect.&amp;nbsp; With a cool workaround. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs51BA2A0A"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="cs51BA2A0A"&gt;format&lt;/SPAN&gt;&lt;SPAN class="cs784E3680"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csE6F36C26"&gt;value&lt;/SPAN&gt;&lt;SPAN class="cs784E3680"&gt; $dumbplan &lt;/SPAN&gt;&lt;SPAN class="csEC41C42C"&gt;'Second Test'&lt;/SPAN&gt;&lt;SPAN class="cs784E3680"&gt; = &lt;/SPAN&gt;&lt;SPAN class="csEC41C42C"&gt;'Second^{style[fontstyle=italic] ^{nbspace 2} Test}'&lt;/SPAN&gt;&lt;SPAN class="cs784E3680"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs51BA2A0A"&gt;run&lt;/SPAN&gt;&lt;SPAN class="cs784E3680"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs784E3680"&gt;Using the non-breaking space code will take care of it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs784E3680"&gt;Is SAS doing 24x7 T.S. now??&amp;nbsp; Impressive.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs784E3680"&gt;--Ben&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 16:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inline-formatting-swallows-a-space-when-going-to-Excel/m-p/372571#M18896</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-07-02T16:18:11Z</dc:date>
    </item>
  </channel>
</rss>

