| 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 &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 &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";
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
|