comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: PRINTF format statement
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PRINTF format statement [message #83682 is a reply to message #83681] Thu, 28 March 2013 19:20 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Well, that's exactly how I would've done it. In fact,

IDL> this_gmag = '12.399'
IDL> PRINT, '<dt>g Mag:</dt><dd>'+this_gmag+'</dd>'
<dt>g Mag:</dt><dd>12.399</dd>
IDL> OPENW, lun, 'test.txt', /get_lun
IDL> PRINTF, lun, '<dt>g Mag:</dt><dd>'+this_gmag+'</dd>'
IDL> FREE_LUN, lun

works for me. I'm guessing the text file written by IDL is correct (i.e., all one line) but the HTML is formatting the problem. But, using the example at

http://www.w3schools.com/tags/tag_dt.asp

seems to indicate this is the expected HTML output. In fact, the <dt> is for a definition list. Perhaps you want/need a different tag?
[Message index]
 
Read Message
Read Message
Previous Topic: PRINTF format statement
Next Topic: CGIMAGE

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:12:38 PDT 2025

Total time taken to generate the page: 0.32240 seconds