LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (December 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 17 Dec 2004 12:58:14 -0500
Reply-To:   Igor Kurbeko <ikurbeko@ATHEROGENICS.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Igor Kurbeko <ikurbeko@ATHEROGENICS.COM>
Subject:   ODS MARKUP: prevent &NBSP from breaking into &AMP;NBSP
Content-Type:   text/plain; charset="us-ascii"

Hi, guys.

I create an html file with ODS MARKUP.

I'm trying to inject blank spaces but &NBSP translates into &AMP;NBSP;

Any ideas how to fix it?

Thanks.

Here's my code:

ods path(prepend) work.template(update);

options fmtsearch=(tfmt_a42.formats work library) ls=250;

proc template;

define tagset tagsets.test;

parent=tagsets.htmlcss;

define event table;

start:

put "<div align=center>" ;

put "<table ";

putq " border=" BORDERWIDTH;

put " border=""1""" / if !exist( BORDERWIDTH );

putq " cellspacing=" CELLSPACING;

putq " cellpadding=" CELLPADDING;

putq " rules=" RULES;

putq " frame=" FRAME;

trigger align;

put ">" NL;

finish:

put "";

end;

define event colgroup;

put "";

finish:

put "" ;

end;

define event colspec_entry;

put "" ;

end;

define event table_head;

put "<thead>" NL;

finish:

put "</thead>" NL;

put "</table>" NL;

put "</div>" NL;;

end;

define event table_body;

put "<div align=center style='height:450;overflow:scroll;'>" NL;

put "<table frame=box >" Nl;

put "<tbody>" NL;

finish:

put "<tbody>" NL;

put "</table>";

put "</div>";

put "</tr>";

put "</table>";

end;

define event data;

put "<td";

trigger pre_post;

putq " class=" HTMLCLASS;

trigger align;

trigger style_inline;

trigger rowcol;

put 'width=' cellwidth;

put ">";

put "<pre>" / if exist( asis );

put VALUE;

finish:

trigger pre_post;

put "</pre>" / if exist( asis );

put "</td>" NL;

end;

end;

run;

data one(keep=ptid trtmnt1 );

set tad_a42.rand ;

trtmnt1=trtmnt||"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp";

run;

ods markup body='h:/temp.html' tagset=tagsets.test ;

proc print data=one noobs;

run;

ods markup close;

Igor Kurbeko

Clinical Programmer Analyst

678 336 4328

ikurbeko@atherogenics.com

Amateurs hope, professionals work


Back to: Top of message | Previous page | Main SAS-L page