Need help on carriage return / line feed...

Hello

I have a variable that is defined for a new line, for example < CFSET newline = "#chr (13) ##chr (10) #" >, that I use as a break between the lines of text within the intrusion via CFMAIL.

< CFSET Message = NewLine & "product name:" & Trim (GetProduct.ProductName) & NewLine > "."
< CFSET Message = Message & "Product Description:" & Trim (GetProduct.ProductDesc) & NewLine > "."
< CFSET Message = Message & "product color:" & Trim (GetProduct.ProductColor) & NewLine > "."

< intrusion via CFMAIL = "[email protected]" to = "[email protected]" SUBJECT = "Product information" > #Message # < / intrusion via CFMAIL >

If the email is sent to and open into account Microsoft Outlook (mailbox), the line "Product Description" text would remain on the same line as the name of the product (when LEN (GetProduct.ProductName) > 50). In other words, the return to the line variable does not break. The code works well with a yahoo or hotmail account.

All the tips are greatly appreciated.

Thanks in advance!




The trick is to add 3 blank spaces ("" ") at the end of each line, but before the break (new line) like these:



#Message #.

Tags: ColdFusion

Similar Questions

  • Carriage return line feed constant adds

    I write a monotube ASCII file in Labview (32 bit 2011, SP1, Windows 7 machine) that will be read by a SBC embedded Linux.

    I join my channel desired with a constant supply line. However, it does not seem to turn off 0x0A, I always get CR/LF (0x0D/0x0A).

    I also tried a string constant in hexadecimal mode 0 "a." And with a string constant in '-display of Codes ", when I put '\A', it immediately turns into '\n'."

    With all these options, the last two characters of the file that I build are always 0 a, 0 of a 0D not only as I need for Linux.

    Someone at - it any idea, any suggestions? Thank you.

    You use the function Write Text File? If so, it is by design and also documented in the LabVIEW help for this function, where it is said:

    This function adds platform-dependent, the characters of end of line (EOL) to the elements of a table even if you right-click the function and remove the check mark next to the menu item Convert EOL .

    The underlined part is my accent to highlight what can be a confusing statement. In the past, the help file says:

    This function converts all characters from end of line to end of line, depending on the platform, unless you do a right-click function and remove the check mark next to the menu item Convert EOL characters.

    It was stressed that this was not true with berries, as it ignored the checkmark if you feed in a table. So, the help file was changed to report. I still think that the help file is in need of a sentence previously to explain the general operation of the option convert EOL, with the sentence above, acting as a saving clause.

  • Need help with an order line shaped PowerCLI to follow development snapshots

    Hello

    I use Vshpere 5.1 and I need help to use PowerCLI out of information to audit some VM backups.

    My ultimate goal is to be able to verify which machines are being backed up.  Our backup tool uses instant VMware to run incremental backups so if we can follow what made instant due VM / deleted then we can better verify backups.

    I decided my inexperience with PowerCLI that it would be preferable for me to try a few small orders to see if I could get some decent results.

    The line of code I'm starting with is Get - VM * | Get-VIEvent - MaxSamples 20 | Where-Object {$_.} FullFormattedMessage - eq "task: Remove Instant"} ".

    Most of the time this script works however the output is interesting for me.

    Info: VMware.Vim.TaskInfo

    Key: 5360442

    ChainId: 5360442

    Createduserid: 2014/06/20 22:32:31

    Username: JJarvis

    Data Center: VMware.Vim.DatacenterEventArgument

    ComputeResource: VMware.Vim.ComputeResourceEventArgument

    Host: VMware.Vim.HostEventArgument

    VM: VMware.Vim.VmEventArgument

    Ds                   :

    Net                  :

    Dvs                  :

    FullFormattedMessage: Task: Remove Instant

    ChangeTag:

    DynamicType:

    DynamicProperty:

    Frankly, I was glad I was able to sign anything, but I'm confused as to why under "VM: 'told'"Vm: VMware.Vim.VmEventArgument"instead of the actual name of the VM."

    If I can find it to output the actual name of the Virtual Machine, so I can start to play with the formatting and obtained Export CSV files.  Any help you can offer would be much appreciated.

    Thank you

    I suspect a calculated property might be the way to go.

    Something like that

    Get - VM * | Get-VIEvent - MaxSamples 20 | Where-Object {$_.} {FullFormattedMessage - eq ' task: Remove Instant "} |

    Select @{N = 'The virtual computer name'; E={$_. Vm.Name}}

    You can of course view other properties of events returned to the Select-Object cmdlet even.

  • Need help to insert several lines using PL/SQL

    Hi gurus,

    I wrote a simple PL/SQL to insert the recrods in a table. It works fine if the sql script that is stored in the column to the table TEST_VALIDATION SCRIPT returns a single line. Can you get it someone please let me know a better way to insert multiple results returned by the script? Rest columns can be duplicated.

    DECLARE

    p_rows default NUMBER of 0;

    CURSOR C1_TV
    IS
    SELECT ID, DESCRIPTION, TEST_VALIDATION SCRIPT;

    BEGIN

    FOR C1_TV_REC in C1_TV
    LOOP

    Run immediate C1_TV_REC. SCRIPT in p_rows;

    INSERT INTO THE VALIDATION
    (END_DATE,
    VALIDATION_ID,
    VALIDATION_DESCN,
    VALIDATION_COUNT
    )
    VALUES
    (
    (select sysdate to DOUBLE),
    C1_TV_REC.ID,
    C1_TV_REC. DESCRIPTION,
    p_rows
    );

    COMMIT;

    END LOOP;

    END;
    /

    Please let me know if this isn't clear.

    Thank you
    Shash

    You need something like that

    declare
      p_rows dbms_sql.number_table;
      i pls_integer;
    begin
      execute immediate SCRIPT bulk collect into p_rows;
      i:=1;
      loop
        exit when i>p_rows.count;
        insert... p_rows(i)....
        i:=i+1;
      end loop;
    end;  
    

    or the much faster method (if it works in your case)

    declare
      p_rows dbms_sql.number_table;
      i pls_integer;
    begin
      execute immediate SCRIPT bulk collect into p_rows;
      forall i in p_rows.first..p_rows.last
         insert into table (field) values (p_rows(i));
    end;  
    

    And why you use

    (select sysdate from DUAL)
    

    Just use

    sysdate
    

    Published by: Oleg Gorskin the 12.01.2010 06:51
    Add method with forall

  • Need help do the smooth lines

    Wondering if anyone can help make these lines on this smooth image. You can see in the picture there are some very rough lines on the headphones and would appriate if someone could tell me how to fix it properly. I tried so many times and can not do.

    headphone.jpg

    Redraw them with a suitable tool. For example with the tool pen.

  • Desperately need help with AS3 and Twitter Feed!

    Hi all

    I took another developer and try to add a Twitter feed to my flash application. The twitter feed has, but only the first title and loops. It does not show the other tweets, just the first title and repeat over and over again. Please help me with this because I'm desperate to fix.

    Here is my source code for Twitter.as

    I use Flash develop to make it the main.swf, but I don't know the code below for the Twitter account is wrong because it shows more then 1 tweet.

    package src.main

    {

    import com.greensock.TweenMax;

    import com.theppc.cmstools.CmsVars;

    import com.theppc.cmstools.TextTool;

    import com.theppc.visualtools.DrawBox;

    import flash.display.MovieClip;

    import flash.display.Sprite;

    import flash.errors.IOError;

    import flash.events.Event;

    import flash.events.IOErrorEvent;

    import flash.events.SecurityErrorEvent;

    import flash.events.TimerEvent;

    import flash.net.URLLoader;

    import flash.net.URLLoaderDataFormat;

    import flash.net.URLRequest;

    import flash.text.TextFieldAutoSize;

    import flash.utils.Timer;

    Import src.utils.TitleBlock;

    import com.greensock.easing.Back;

    import com.greensock.easing.Strong;

    import of CBC. Main;

    Import src.utils.HandleXml;

    /**

    * ...

    * @author Joshua King

    */

    SerializableAttribute public class extends MovieClip TwitterBox

    {

    private var _title:TitleBlock;

    private var _bg:Sprite

    private var _width:int;

    private var _height:int;

    private var _tweetholder:MovieClip;

    private var _txt:ContentTxt;

    private var _mask:Sprite;

    private var _user:String = "PPC_Creative";

    private var _tweetcount:int = 5;

    private var _tweets:Array = [];

    private var _times:Array = [];

    private var _gap:Number = 55;

    private var _tweetmove:int = 0;

    public void TwitterBox (_w:int, _h:int)

    {

    _width = _f;

    _height = _it;

    init();

    }

    private function init (): void

    {

    _bg = new Sprite();

    addChild (_bg);

    _bg. Graphics.LineStyle(1,0x00ccff);

    _bg. Graphics.beginFill (0xFFFFFF);

    _bg. Graphics.drawRect(0,0,_width,_height);

    _bg. Graphics.endFill ();

    _tweetholder = new MovieClip();

    _tweetholder.y = 55;

    _tweetholder.x = 5;

    addChild (_tweetholder);

    _MASK = new Sprite();

    _MASK. Graphics.beginFill (0xF09FFF);

    _MASK. Graphics.drawRect (0, _gap, _width, _height - _gap - 5);

    _MASK. Graphics.endFill ();

    addChild (_mask);

    _tweetholder. Mask = _mask;

    _txt = new ContentTxt();

    _txt.txt.text = ";

    _txt.Alpha = 0;

    _txt.txt.width = 537;

    _txt.txt.height = _height - _gap - 5;

    _tweetholder. AddChild (_txt);

    addContentboxes();

    }

    private function addContentboxes (): void

    {

    _title = new cartridge (Main._sitedata ['text'] [5] .we, 547);

    addChild (_title);

    addTweets();

    }

    public function addTweets (): void

    {                    /*

    var urlReq:URLRequest = new URLRequest (_url);

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, getTweets);

    loader.addEventListener (IOErrorEvent.IO_ERROR, IOError);

    loader.addEventListener (SecurityErrorEvent.SECURITY_ERROR, SError);

    Loader.Load (urlReq);

    */

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = URLLoaderDataFormat.TEXT;

    loader.addEventListener (Event.COMPLETE, getTweets);

    var url: String = " " https://API.Twitter.com/1/statuses/user_timeline.RSS?screen_name=PPC_Creative ";

    must use a proxy due to security sandbox issues if you call this twitter url directley to flash

    var req:URLRequest = new URLRequest ("rssProxy.php? rss =", CmsVars.PHP_ROOT + url)

    trace (CmsVars.PHP_ROOT + ' rssProxy.php? rss =' + url);

    Loader.Load (req)

    }

    private void getTweets(evt:Event):void

    {

    var twitterXML:XML = new XML (evt.target.data);

    var tweetList:XMLList = twitterXML.children ();

    var tweetItem:String;

    var timeItem:String;

    var _counter:int = 0;

    _tweetmove = 0;

    _tweets = [];

    for (var i: int = 0; i < tweetList.length (); i ++)

    {

    tweetItem = cheat [i]. *: title;

    trace (tweetItem);

    If (tweetItem! = "")

    {

    _tweets.push (tweetItem);

    _Counter ++

    If (_counter > = _tweetcount)

    {

    break;

    }

    }

    }

    moveTweet();

    }

    private function moveTweet (): void

    {

    _txt.Alpha = 0;

    TextTool.setText (_txt.txt, _tweets [_tweetmove], true);

    TweenMax.to (_txt, 1, {delay: 1, alpha: 1, replace: 0});

    TweenMax.to (_txt, 1, {delay: 12, alpha: 0, crush: 0, onComplete:moveTweet});})

    _tweetmove ++

    If (_tweetmove > = _tweets.length) _tweetmove = 0;

    }

    private void IOError(e:Event):void

    {

    trace ("io error!");

    }

    private void SError(e:Event):void

    {

    trace ("security error!");

    }

    }

    }

    First of all, your cheating XMLList length is only 1. I like to use E4X rating rather than the old children() as you're here, so I might suggest to change this:

    var tweetList:XMLList = twitterXML.children ();

    in your getTweets() method to:

    var tweetList:XMLList = twitterXML.channel.item;

    Then you have all your items. I liked so much out of each of them:

    for (var i: int = 0; i< tweetlist.length();="">

    {

    trace (tweetList [i] .title);

    }

    Also, I had no trouble calling Twitter directly from Flash using:

    var loader: URLLoader = new URLLoader();

    Loader.Load (new URLRequest ("https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=PPC_Creative"));

    loader.addEventListener (Event.COMPLETE, getTweets);

    However, there is a typing error in what you had posted - you had a space in the URL - after the C in C reactive...

  • Exported text and carriage return

    Hello

    After you export a history selected with a JavaScript in an external text file, there is always a carriage return too the end of the file exported.

    How can I get rid of this CR?

    Thank you!

    I * think * "e" mode is messing things here, i.e., you * are * changing the string, but rewriting it replaces the original text less transport returns to the end, and because you stop to write here, the original file data remains. Don't know if it's like 'e' is supposed to work, but then again, remove from the equation makes things work.

    (It actually also needed a ' file.seek (0) ' at work.)

    It is a slightly better way: open for read only, read, close; Remove carriage returns (line feeds as well, and sometimes I work on Windows here); open for writing and recording.

    For safety, I replaced the blind slaughter of the 'last character' with one; any number of returns at the end is deleted, or none if there is none in a first time.

    function delCR(file)
    {
        var myFile = file.open("r") ;
        var myCont = file.read();
        file.close();
        var myShortCont = myCont;
        while (myShortCont.substr(myShortCont.length-1) == '\r' || myShortCont.substr(myShortCont.length-1) == '\n')
         myShortCont = myShortCont.substr(0, myShortCont.length - 1);
        myFile = file.open("w") ;
        file.write(myShortCont);
        file.close();
    }
    
  • TextArea has double carriage returns

    I have an xml that looks like this

    < event >
    < event >
    Event < title > < /title >
    < description > This is the description of the event
    When I line breaks, like this
    the text box 2, everywhere
    I have only one.
    < / description >
    < / event >
    < / events >


    I even tried the tabs are, so that the extra characters only are CR LF, but I still see extra carriage returns in my textarea.

    Ayone know what is the cause?

    * The text box control uses UNIX style line endings, which means that text data containing Windows-style carriage return line feed (that is, \r\n) formatting for new lines contain extra line breaks. You can use the String.replace () with a regular expression to convert the text to type UNIX line purposes, as in the following example:

    windowsCRLF:RegExp = \r\n/gm private static const;

    ...

    myTextString = myTextString.replace (windowsCRLF, "\n");

    http://www.Adobe.com/support/documentation/en/Flex/2/releasenotes_flex2_sdk.html

  • Importing of XML in Indesign text friendly "carriage returns.

    Hello
    I have a question regarding the import of XML in Indesign.  I have my text stored in Excel (Fig A) and intend to export to an XML file, where each line will represent each page.  However, my first attempt failed process "cart returns" I had considered:
    "Carriage returns" used within a cell in Excel (ALT + ENTER) are preserved during the transformation to a CSV (fig. B).  However, when converting a file XML, the conversion takes place on a line-by-line, and therefore, the XML file becomes incomplete (Fig C).

    So it seems, I need to make sure that the CSV file contains one line per entry, while maintaining the real transport returns in my spreadsheet source and for Indesign to recognize.  To do this, I'll need to substitute "carriage returns" in my excel column to be represented by a new set of characters.  My question is how can I let Indesign can recognize this set of characters to be converted to a carriage return, importing text.
    For example, if the character set has been ' %% ', then my new csv file would look like Figure D and XML would be produced correctly, as the Figure E.  Then import this XML file into InDesign, return transport would be automatically restored, if all goes well.

    I hope someone can help me because I am only starting in Indesign and feel Im running until I can walk by embarking on the XML/Indesign arena too early.
    Best regards
    Luke
    XML_ReturnIssue.JPG

    No, I don't think.

    The fact is that ^ is a special character to find/replace.

    so you should either avoid its use in search strings to avoid confusion.

    or if you agree the confusion, you must use ^ ^ n to search for

    (instead of ^ n).

  • parse strings of measure a carriage return, need help

    Hello

    I'm struggling with an analysis of a chain. I have an obligation to take a position in a string and analyze of the said position (a character channel number) until a carriage return.

    Here's an example, lines are separated by carriage returns.

    1 text section one
    the second section of text 2
    Chapter 3 text 3

    Or the text is delivered in the following format

    1 text section one
    the second section of text 2
    Chapter 3 text 3
    much more text that I don't care.

    If the function accepts 2 for the post, I need to return "section of two text". The problem I have is how to search up to a carriage return, the only way I found to do this is to replace carriage returns (Chr (10) and chr (13)) with another character. There must be a better way, I come from a background of t - sql and am struggling to get this is quite accurate.

    Help, please

    I use 10g, if it's important.

    Hello

    Since you're using Oracle 10, you can you the regular expressions.
    REGEXP_SUBSTR can easily find all of a given until the end of the line, including text.
    To exclude the given text itself, use REGEXP_REPLACE.

    SELECT     REGEXP_REPLACE ( REGEXP_SUBSTR ( full_txt
                               , '2 .*'
                               )
                     , '2 '
                     , NULL
                     , 1
                     , 1
                     )
    FROM    table_x
    ;
    

    You can use a variable binding to the target text, in particular because it is used twice:

    SELECT     REGEXP_REPLACE ( REGEXP_SUBSTR ( full_txt
                               , :target_txt || '.*'
                               )
                     , :target_txt
                     , NULL
                     , 1
                     , 1
                     )
    FROM    table_x
    ;
    
  • Need help to select the value of the affected line

    Hello! I need help to write a statement Select returns a value of the respective line in a table. I have a table that contains an id and a name of entity and a table of addresses with the lines of address, city, province/state, country, etc, which is linked through the identifier. There may be several lines in this table for any entity id given etc. which are distinguished by a type of address for example Mailing, billing, payment, shipping,. I'm writing a view that returns the name of the entity, the city and the State. I want to use the address of delivery, if it exists, otherwise, I want the broadcast address. One of these types of addresses will still exist, and it is possible that both will exist. I'm just back to SQL after a prolonged absence and am not familiar with some of the new features. I'm also new to the Oracle community. We are on Oracle 11.2. Any help would be greatly appreciated. Thank you!!

    P.S. I posted this question a couple of weeks and got some responses. But I can't find the post. I thought I posted it here, but who knows! As I said, I'm new on this.

    Hello

    Here is an example of how to join another table to results of Top - N all:

    WITH got_r_num AS

    (

    SELECT deptno, job, ename, sal, hiredate

    Rank () OVER (PARTITION BY deptno

    CONTROL OF CASE work

    WHEN PRESIDENT", THEN"A ".

    WHEN 'MANAGER' THEN 'B '.

    END

    ) AS r_num

    FROM scott.emp

    WHERE job IN ('MANAGER', 'PRÉSIDENT')

    )

    SELECT d.deptno, d.dname

    r.ename, r.job, r.sal, r.hiredate

    Got_r_num r

    JOIN scott.dept d.deptno d = r.deptno

    WHERE r.r_num = 1

    ORDER BY d.deptno

    ;

  • FDK: Problem with line breaks / carriage returns

    Hello


    I met a strange problem with strings when you use the FrameMaker API. We have a FAPI customer who translated documents FM reading in their content, by replacing their text by the new translated text and in return the change in writing.

    However, I found that some strings are starting with a \r (carriage return) character, when we read in and when we write their return, they begin with \r\n, which moves text to the bottom line, and can break things as references etc. I don't know exactly why this is happening, we are using Visual C++ and we do a lot of conversions between classes CString and StringT types so maybe this conversion process are to do.

    To be honest, I find the appearance of newlines and carriage returns in the frame channels somewhat odd frame API breaks up the text of a paragraph into fragments for you anyway, so I would have thought that the use of these characters is redundant. That's a big assumption however so correct me if I'm wrong.

    We have implemented a work around by which our program strips newlines off channels before writing their return

    but in reality, what we really need to undress returns to the main line of strings, before starts the printable text in a string.

    I wonder what others have to say about this WRT its security approach. Any advice would be appreciated, thanks

    Eric

    Eric,

    I did a little greater experimentation, based on my previous comments (sorry, should have done that before I clicked on the Post before.)  When I programmatically add a \r one paragraph, I don't see no effect in page layout. This is consistent with my suspicions so far. I really think that, maybe, these characters are misleading and should be removed from the beginning.

    Russ

  • Need help to use a diskpart command line to create a partition.

    Original title: diskpart question - please help

    I really need help with the diskpart commands, so I hope someone can help out me. I recently sold a pc on ebay which would include a 320 GB HARD drive. I didn't want to take any chances on the data being restored from the disk I did a "clean up" the disk to be sure.

    Seeing how it would take time, I started after work and went to bed. During the night the XP machine, it worked on that decided to do an update and restart. Long story short, I have more the diskpart command line to create the new partition and format the disk, and I can't (don't know how) get machine XP or 7 to recognize the drive.

    I do not think that it will hire at all, but the reader is sitting in a docking station and mounted in the machine. If someone could help me I would be very happy. If you can give me a list of commands that I need to get this drive back to normal and ready to ship (so the buyer can easily load their own OS) I would be eternally gratefull.

     
    Is there another way besides as diskpart to get the disk to format so I can send it ready for the new owner to install its own operating system?

    Hello

    Step 1: Format your hard drive using the Installation disc.

    If you have the installation disc, you can format the hard drive.

    To do this, follow the steps below:

    (a) place the installation disk in the system tray.

    (b) restart the system using the installation disc. (This is commonly known as booting from the installation disc).

    (c) during the installation process, you can re-partition and reformat your hard drive

    Note: the process will erase your files and programs, so remember to make backups of your data files and the program before you start.

    Check out the link:

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    You can try following the steps from the link below

    http://support.Microsoft.com/kb/313348

    For Windows vista -http://Windows.Microsoft.com/fr-fr/Windows-Vista/Create-and-format-a-hard-disk-partition

    For Windows 7 - http://windows.microsoft.com/en-US/windows7/Create-and-format-a-hard-disk-partition

    I hope this helps.

  • I want to return a plug-in, I accidentally deleted.i to play online snooker.can someone at - it need help please?

    I want to return a plug-in, I accidentally deleted.i to play online snooker.can someone at - it need help please?

    Hello

    1. What plugin you are talking about?

    2. on which site Web you are trying to play the game of billiards online?

    3. what web browser do you use?

    4. how exactly did you uninstall the plug?

    Plug-ins are provided by third-party providers, you can try to load the game of billiards and verification that branch is needed.

    Please come back with more information on the issue so that we can help you better.

    You can also visit the link of the article of Microsoft that will guide you on how to ask questions below.

    Suggestions for a question on the help forums

    http://support.Microsoft.com/kb/555375

  • I need help with a question command line syntax

    I got 3 issues that need to be entered in command line / syntax.
    I had no training in command line and need help for that setting in the command line syntax.
    (The IP address is a fact).
    This will be done also on a PC that requires elevated permissions. So if a programmer can zip through it in no time it would be much appreciated. Perhaps one without high and an example with.

    1 setting up daily ping test to a server with the IP 10.254.254.1 which will be composed of 1 000 ICMP echoes.
    2. establish daily ping tests to a server with the same IP address which will consist of one hundred 1 500 bytes ICMP packets.
    3 configure these run every day and are output to a text file.

    Hi Matt,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. Appropriate in the TechNet forums.

    Please post your question in the Windows 7 IT Pro: http://social.technet.microsoft.com/Forums/en/category/w7itpro/

    Thank you.

Maybe you are looking for

  • Photos of the best arrangements records-photos

    Hello. What is the best / / recommend the Photo Albums folder structure? What I have to do a lot of folders and subfolders, or I can do records subjects and all photos will be placed in this folder? Thank you. This is the current structure:

  • Incorrect IP address in AirPort Extreme Base Station

    I use a Vista PC. I have been using the Airport Extreme already. Recently, I try to make some changes when it starts. I accidentally pressed the wrong buttons. When changes are made and he ends by I cannot connect to the wireless device more. As show

  • How can we do a single element with the content of two clips

    How can we do a single element with the content of two clips

  • Want 5660: paper jam

    My printer repeat me that it is jammed paper but once I cleared paper that he said distillers I'm stuck. Any ideas to erase it. Website says as I have not printed impressions and not connected to the line. I know this is not true.

  • How to convert a set of rules to update a rule update shared?

    I created a set of update rules in the Tools section of the E10 data, but it does not appear in the list of rules to update shared and so I am unable to use it in the stages of treatment for my forms (even if I can still use it in programs).  Anyone