<?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 ODS PDF escapechar and 'extra' spaces in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-escapechar-and-extra-spaces/m-p/193525#M13095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Apologies for the cross-posting, I posted this to the wrong community yesterday]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ODS PDF Text to create some standard reports. When I put a change in style in the middle of a text line (e.g. to italicize a word), extra spaces are inserted in front of the italicized word. After some experimentation, I found that this only happens when the text line is reasonably long (I didn't do enough experimentation to determine the exact length of text that would invoke the problem. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;"^S={font_face=calibri font_size=11pt }regular^S={font_face=calibri font_size=11pt font_style=italic} italic^S={font_face=calibri font_size=11pt} regular."&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;It produces:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; regular &lt;EM&gt;italic&lt;/EM&gt; regular&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;But when the text line is long:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;"^S={font_face=calibri font_size=11pt }Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ipsum dolor sit amet, consectetur adipiscing elit^S={font_face=calibri font_size=11pt font_style=italic} italic^S={font_face=calibri font_size=11pt} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ipsum dolor sit amet, consectetur adipiscing elit."&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;It produces:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lorem ipsum etc.&amp;nbsp;&amp;nbsp; &lt;EM&gt;italic&lt;/EM&gt; Lorem ipsum etc.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [note there are two extra spaces in front of the word "italic"]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried breaking the long text line up into multiple lines in the editor, and I've tried assigning all of the various pieces to macro variables so that the "pdf text" line looks like: &lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"&amp;amp;reg&amp;amp;pt1&amp;amp;itl&amp;amp;pt2&amp;amp;reg&amp;amp;pt3"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;but the result is the same (extra blank spaces). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I would like to think that I've looked everywhere for a solution... but I'm sure I've missed something. Anybody have any clues?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 12:57:52 GMT</pubDate>
    <dc:creator>phallrik</dc:creator>
    <dc:date>2015-07-01T12:57:52Z</dc:date>
    <item>
      <title>ODS PDF escapechar and 'extra' spaces</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-escapechar-and-extra-spaces/m-p/193525#M13095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Apologies for the cross-posting, I posted this to the wrong community yesterday]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ODS PDF Text to create some standard reports. When I put a change in style in the middle of a text line (e.g. to italicize a word), extra spaces are inserted in front of the italicized word. After some experimentation, I found that this only happens when the text line is reasonably long (I didn't do enough experimentation to determine the exact length of text that would invoke the problem. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;"^S={font_face=calibri font_size=11pt }regular^S={font_face=calibri font_size=11pt font_style=italic} italic^S={font_face=calibri font_size=11pt} regular."&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;It produces:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; regular &lt;EM&gt;italic&lt;/EM&gt; regular&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;But when the text line is long:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Courier New; font-size: 10pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;"^S={font_face=calibri font_size=11pt }Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ipsum dolor sit amet, consectetur adipiscing elit^S={font_face=calibri font_size=11pt font_style=italic} italic^S={font_face=calibri font_size=11pt} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ipsum dolor sit amet, consectetur adipiscing elit."&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;It produces:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lorem ipsum etc.&amp;nbsp;&amp;nbsp; &lt;EM&gt;italic&lt;/EM&gt; Lorem ipsum etc.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [note there are two extra spaces in front of the word "italic"]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried breaking the long text line up into multiple lines in the editor, and I've tried assigning all of the various pieces to macro variables so that the "pdf text" line looks like: &lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;"&amp;amp;reg&amp;amp;pt1&amp;amp;itl&amp;amp;pt2&amp;amp;reg&amp;amp;pt3"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;but the result is the same (extra blank spaces). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I would like to think that I've looked everywhere for a solution... but I'm sure I've missed something. Anybody have any clues?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-escapechar-and-extra-spaces/m-p/193525#M13095</guid>
      <dc:creator>phallrik</dc:creator>
      <dc:date>2015-07-01T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF escapechar and 'extra' spaces</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-escapechar-and-extra-spaces/m-p/228680#M14452</link>
      <description>Hi: The syntax you are using is the older syntax. Are you still running SAS 8 or SAS 9.1?? If so then you will have to use the older syntax. But if you are at SAS 9.2 or higher, you could use the newer STYLE override syntax. But for specific usage questions like this, you are probably better served by opening a track with Tech Support.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 06 Oct 2015 17:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-escapechar-and-extra-spaces/m-p/228680#M14452</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-10-06T17:52:26Z</dc:date>
    </item>
  </channel>
</rss>

