ignoreWhite Strip carriage returns?

I read in the many resources to ignoreWhite get rid of all the carriage returns. Yet, when I run this simple example, I see a car visible return (2 actually) in the output panel. What happens here?

XML:
<? XML version = "1.0" encoding = "UTF-8"? >
< portfolio >
< section sectionName = "signature" >
< filename = "contents filename.swf' caption = 'Hello' >"
This is the text that goes in here.
< / content >
< / section >
< / portfolio >

ActionScript:
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success: Boolean): Void {}
If (success) {}
trace (this);
}
else {}
trace ("error loading XML file");
}
};
myXML.load ("portfolio.xml");

Here is a screenshot of the output panel:

http://www.thinkseed.com/test/ignoreWhite_output.gif

Two things seem to solve this problem:

Adding a CDATA tag in the XML file:








Or just get rid of the carriage returns:




This is the text that goes in here.

Tags: Adobe Animate

Similar Questions

  • Carriage returns in the HTML Code, creating additional spaces between elements

    I looked everywhere online and cannot find the solution to my problem. I found several pages explaining a similar event, but no solution.

    When you put several divs side by side, I would like to visually display the code as a div by line: (see image) to do this, I have to use returns in my code (this method makes editing much easier visually). But doing so adds an extra space between the divs that turns a game of 3 columns of thumbnails to 2 columns. I can fix it if I adjust the physical margins between the divs, but this isn't the only solution.

    with-carriage-returns.jpg

    The other difficulty is that if I put the code back to back to back (see picture): what makes the div behave and appear as they should, but now the code is a Visual disorder because it is very crowded.

    no-carriage-returns.jpg

    What I want is to be able to use as many carriage returns in my code and for browsers to ignore these types of line breaks in the code. So, basically, how can I get away from these extra spaces when you use returns in the code?

    I think that your two pages have a missing at the end somewhere.

    OPPS... it happened when I was stripping down the page to create a working example of my question. I set the div missing and re-uploaded both pages. The problem is still there.

    Change display: inline; float: left; and add margin: 0 0 4px 4px; (as shown below)

    I had already tried to use floats, but something else in the code forced the columns to 2 instead of 3.

    'Apply Source Formatting' did you use?

    I use that religiously. I'm quite anal about visually clean code.

    Well, I just fixed the problem while responding... funny... I removed the margins of the element img real (.imageThumb img) and placed on the div that surrounds the img (.imageThumb). I also reapply the float. Thank you all for the help - it helped me rethink. But I could have sworn I had once placed the margins on .imageThumb before and it didn't work.

    {.imageThumb}

    Width: 100px;

    height: 75px;

    display: inline;

    float: left;

    margin: 0px 10px 10px 0px;

    cursor: pointer;

    }

    .imageThumb img {}

    / * margin: 0px 10px 10px 0px; * /

    }

  • 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

  • 8.1 for Windows and Firefox 36.0.1 the text in the forms box has no carriage return. Earlier versions, as forms of work. Is there any solution for this?

    Before this version of Firefox 36.0.1, the < textarea > HTML worked in my forms. View Cart returns. In the version of 36.0.1 that they no longer work correctly. However, when I enter a carriage return, it displays a space instead of a line break. I went to test basic textarea
    < textarea > name = cols 'comments' = 20 rows = 10 < / textarea >
    to make sure that I was not introducing anything with other languages.
    I use Windows Pro 8.1. I drove back to 35.0 Firefox and everything works fine. I installed 36.0.1 and it stops working.
    I have access to another laptop also running the same version of windows and Firefox and it seems to be done as well strange things. I'm suspicious because I started to notice this immediately after a windows update last night. The laptop also known issues that he immediately after a windows update last night.
    I still have another computer running a different version of windows and Firefox and it works very well. It seems that the issue is where there are windows Pro 8.1 and Firefox 36.0.1.
    Guys do you have an idea what is happening here?
    Thank you
    JMRAUPE57

    The current version supports the white-space for a text box property and it is possible that the Web site uses spaces: pre instead of spaces: pre wrap.
    The former will prevent Firefox of text wrapping.

    You can check that out in the Inspector via the context menu.

    See:

    The white-space property is currently working on HTML < textarea > (bug 82711) elements.

    See also:

  • Advanced search and replace. How to replace the space with carriage return?

    10.9.13.0/24, 10.9.4.2/32, 10.9.4.3/32

    in

    10.9.13.0/24
    10.9.4.2/32
    10.9.4.3/32

    Find replace them ',' with carriage return.

    I still find articles on an advanced search and replace, but I can't seem to locate it.

    OS X El Capitan 10.11.3

    3.6.1 the numbers

    HI Brendan,

    You don't need an advanced find and replace for it.

    In the search box, press, then space.

    In the box replace by, press option-return.

    Then click Find and replace and find until you are finished.

    Kind regards

    Barry

  • How to enter a carriage return in a cell

    How to enter a carriage return in a cell. Sometimes, I need to list several things in a cell without going to the next cell. I would rather just "Tab" to the next cell.

    Try holding down the

    SG

  • Write spreadsheet adds carriage return

    I use the array build function to set up a number of channels and build an array of strings.  The construction is in a time loop.  A new row is added in the table to each loop.  I use scripture to spread worksheet function to save the worksheet to a file with the xls extension.  For some reason, a carriage return is inserted in the table.  The table has 9 columns and a carriage return is placed after the fourth column.  I haven't added that carriage return.  Does anyone know why write about the spreadsheet can automatically add a carriage return, and how to remove it?

    Thank you!

    I'm not playing an instrument.  If the instrument is the addition of bottom line as a character of endpoint, which is likely, source your extra carriage return.

  • Error reading the port series when the hexadecimal value is 0d (carriage return)

    Hello

    I'm reading a string of 80 bytes from the serial port, but if one of these bytes is 0d (hexa) the rest of the bytes are not read because the read node Visa sees the value 0D as ASCII for the return shipping. How can I read the entire string and see the 0d as a value and not as a symbol of the ASCII?

    Manual

    Of course, she sees it as a carriage return and ends. That's what you have programmed to do. The "character of endpoint allows" set to false with your VISA to set up the Serial Port. What Steve has already said. Claire?

  • Serial Port problems - carriage return and use as an executable file

    Hello

    I developed an application to send a few simple commands on the serial port and read the corresponding answers of a device that I am in communication with.  I have been using logical Port to watch the line TX of the serial port.

    By using the Visa configure Serial Port I set the stop character property allow true and used the hexadecimal value D trying to make the termination a carriage return characters.  When I sent the order, I'll send the cmd followed by Enter.  No matter if this property is set to true or the hexadecimal value is set to D for carriage return or line break is, the serial port would always send a line break.

    Then I got crafty and the string constant under normal display to hexadecimal display.  The ONLY way I could send a carriage return was manually putting 0x0D after ordering.  So my question is, why the Visa set up the Serial Port is not working correctly, and is there a better way to send a carriage return?

    My next issue is facing the construction of executable files.  I'm using LabVIEW 8.2 and wrote this program for another employee to use on his laptop computer.  I did install runtime Labview 8.2 and led to the executable that I generated.  I did-> the executable by clicking Tools build the executable.  The problem I noticed was that the executable would open and will work perfectly, but it would not send any data the serial port.  I then ran the executable on my laptop (which contains the full version of LabVIEW 8.2) and the serial port has worked well.  I guess my question is... Are there plug-ins that must be installed to use the serial port with the Labview runtime engine?  Or y at - it a step that I failed to do?

    Thank you

    Gary Still

    Not immerse in the first issue. The Knight will probably be galloping until shortly.

    For your second question, after building the executable, you must build the installer and includes support for the VISA. VISA is required for serial communication, and it does not accept American Express.

    It may be useful

    -AK2DM

  • Including a carriage return when you write in a single register using Modbus

    I use a NI USB to RS - 232 to connect with a Watlow EZ-Zone PM controller using Modbus Protocol and will have bad to write a value (set temperature) to the controller.  I got when reading registry values, so I know that my settings are correct.  I also checked this using a program of Test of Modbus Watlow provides.  Using this program, it became clear to me that a carriage return is necessary after the numeric value.  MB series query writing Master only allows a value of U16.  How can I include a carriage return?

    A statement like that makes me think that she's not speaking modbus.

    Run their program during execution of something like Portmon.

    Then compare the data sent back with the modbus specification.

  • Indicator automatic resizing of string with carriage returns in the chain

    I try to have a string on my front indicator automatically resize to put different strings that are sent to it.

    I found the function 'Get the Rect.vi text' and it seems to do exactly what I want, but only for the first line of my string.

    It is not resized to display characters after a carriage return / newline.

    Here is a picture of the chain resized automatically next to a picture of the complete string that I size manually.

                       

    How do I autosize my chain indicator box to include all of my text?

    The node to invoke "Text size" would work?

  • Why does my re-installed Acrobat print codes hidden carriage returns?

    I worked happily with Adobe Acrobat for several years. Now, I had to buy a new computer and re - install Acrobat it is not working properly. Here are the facts: my old computer has Windows 7, my new computer has Windows 10. My version of Acrobat's Adobe Acrobat 9 Standard that I bought in 2010. It seems to be 32-bit, but I was not asked for a 64-bit version. The errors are:

    (1) when it creates the PDF the timeline saying wait for me because it is reading never goes away when the green line comes to the end.

    (2) when I opened the new pdf that I find some (not all) hidden codes that appear on my pdfs, for example carriage returns and codes related to the creation of boxes.

    (3) when I try again to create a pdf file, I get a different type of chronology which continues to repeat on the reading process.

    (4) I can not open then the new pdf until I have cancel the chronology of reading and if I then open the new PDF program locks up, producing an Acrobat screen with nothing visible on it, and I can't close the program.

    Okay, I think that there are several different things going on here.

    We would never call this last thing, a crash - this is when Acrobat disappears unexpectedly. We call cela a blockage, if Acrobat does not respond, or - if the answer but simply display a blank like that - something weird!

    But there are several different issues here. Let us look at the extra paragraph marks. Please print a page of the editor on your own printer. You see the same notes on paper?

  • Different handling - FM11 to FM2015 carriage return

    Hello

    There is a change in FM11 to FM2015 with import XML on the carriage returns. I was wondering if someone could explain it. I don't know if it is related to the other FM2015 spaces talks to date.

    Here is my XML file with zero whitespace (carriage returns), open with default application and no validation:

    <?xml version="1.0" encoding="UTF-8"?><test>
    <p>TEST</p>
    <p>TEST</p><p>TEST</p>
    </test>
    

    In FM11, it opens as I expect:

    In FM2015, I get a paragraph with a unique space where the carriage return is:

    This will not occur when I use a structure with normal posting app. Can someone explain what has changed?

    Thank you

    Russ

    Russ,

    I opened your test file in 2015 FM with the default setting (enabled) for RemoveExtraWhiteSpacesOnXMLImport, and with it set to Off. Behavior that I got was slightly different that you mentioned, but I think it's okay.

    When enabled, the document window displays 3 FGP. the Structure view shows a with 3

    s.

    When the option is disabled, the document window not display 4 FGP you reported, but 6. Three of them contain a

    element with the text "TEST"; the others are ranges of text in the element, each containing a single space. All these beaches text correspond to the line breaks in the input document: after the start of tag, after the end tag for the first

    and after the end of the last tag

    .

    The XML recommendation requires that all white space is significant. As a result, FM is correct not get rid. Convert the spaces line breaks is consistent with the treatment of FM of line breaks in a paragraph.

    When you open the same file using a DTD which does not allow for text ranges between

    elements, FM does not create the text ranges.

    While surprising at first, I think that the behavior is correct. So I don't mind test in FM 11 or 12 FM.

    The problem is that if you want a white space after xrefs treated properly, you must disable the option and if you want to avoid breaks come as data characters, you should enable the option of line. The solutions are:

    (1) use a DTD

    (2) to preprocess the entry to remove XML format line breaks

    (3) to preprocess the entry to change a space after an xref to a character reference

    (4) Hope Adobe fixes the bug soon

    -Lynne

  • Preserve carriage returns in the success Message

    Apex 3.2

    I have a page process that calls a procedure in the database.

    The procedure of database returns that a message with carriage returns.

    My page process is as follows

    Declare
    v_message varchar2 (4000);
    number of v_bmiid;
    V_bmikey varchar2 (128);
    number of v_dmatid;

    Begin

    p_vpeapx.pr10_update_bmi (p_ldeid = >: F300_LDEID,)
    p_bmiextkey = >: P10_BMI_EXTKEY,.
    p_promextkey = >: P10_BMI_PROM_EXTKEY,.
    p_bmilongdescr = >: P10_BMI_LONGDESCR,.
    p_bmishortdescr = >: P10_BMI_SHORTDESCR,.
    p_bmiid = >: P10_BMIID,.
    p_bmikey = > v_bmikey,
    p_dmatid = > v_dmatid,
    p_process = > 'update BMI. "
    po_message = > v_message.
    p_checksum = >: P10_CHECKSUM);

    : P10_MESSAGE: = v_message.

    End;

    I then use P10_MESSAGE as my message of success of the process;

    displayed on the page is all in a single line, without carriage returns.

    P10_MESSAGE is a hidden and protected

    The message of the database may be very large, so I need cart returns to display to the user

    Gus

    Gus C wrote:

    I tried the front line, does not work in Internet Explorer, but worked in FF.

    Unfortunately, users do not FF.

    Before I tried and it put everything on one line

    Any other suggestions please

    Set the Message of the success of the process:

    &P10_MESSAGE.
  • Replace the carriage return or new line with a table space

    Hello

    I want to replace the carriage return or new line with space in my column of the database.

    To do this, I'm using this query:

    Select replace (replace (Comments, chr (10),' '), Chr (13),' ') OF Comments_Master

    Comments_Master is the name of the table and comments is column that contains carriage return or new line.

    But this query works as expected.

    Once I run this query and run the query again "select * FROM Comments_Master", transport return and new line still exist.

    Please let me know what is wrong with this query?

    You write that data back you? This example shows that your sql should work. I thinnk the query that you just described is the updated one below.

    create table blah (text varchar2 (100));

    insert into bla values (' it's multi)

    line of text ");"

    Select * from blah.

    Select replace (replace (text, chr (10),' '), Chr (13),' ') of bla.

    Update text bla = replace (replace (text, chr (10),' '), Chr (13),' ');

    Select * from blah.

Maybe you are looking for

  • Re: Can burn and DVD but no burn CD

    I have the TS-L632H drive in my laptop which has a very strange problem, I can burn and read DVDs without problem, but I can't burn a CD. My operating system is Windows XP and I tried various burning (Nero, eBurn, CDburnerXP etc) software, all with t

  • This charger is compatible?

    I have a wall charger that accepts a USB plug. It is used initially with a mini USB cable, but it can accept any string that has a USB port on it. The 5V output, do you think that it is acceptable to use this to load a rocket? It is rated at 1 a, and

  • Window mail is delete each Email I read

    When I read an email in Windows Mail, it removes my emails without putting them in the deleted file.  If I just open a message and do not delete it because I want to open later, he removes the message completely.  Please help - it drives me crazy bec

  • Random zoom and freeze while playing any media or play games

    I bought a new laptop with windows 7 and I get this strange buzzing sound of the speakers, but also a little gel every time I play no matter what media or games. All my drivers are up to date. When we look at the Device Manager the only strange thing

  • Default action of gravity?

    Is it possible to set a default action of gravity such as "newspaper" all high severity signatures? Is it possible to have notifications by e-mail without buying Ciscoworks? Thanks in advance.