Re: Heredoc strings

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...

I've given these ideas some thought and come up with this ...

if idx = 2 then 
    idx = idx + 25 
    output = #/ 
________ 
        Dear Mr. John Doe,  
         
            I am very happy for your support  
            with respect to the offer of 
            help. 
         
        Mr. Jeff Doe  
        / 
else 
    .... more .... 
end if 

Which will display as

Dear Mr. John Doe,  
 
    I am very happy for your support  
    with respect to the offer of 
    help. 
 
Mr. Jeff Doe  

I presume that the trimmed whitespace needs to be spaces. How would it deal with a tab thrown in?

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu