XML, CSS, tabs and unwanted line breaks

Hello

I spent days trying to fix this... including many hours of trawling the web, but nothing helped so I hope some of you can help out.

I have a site that compiles to Actionscript 2.0 and Flash player 8.  This site uses the XML output from ASP.Net pages of database-oriented.

The problem I have is basically where I have a tabstops set, in some cases, where the text from the first tab stop is over a certain length, a unwanted line break is released just before the last word in the entry.  (I know it's always the last word if I put a word on the end of the word chain that was originally on the new line being back in its place - so it doesn't seem to be associated with length).

Indeed, what I want is as follows:

Header1: descriptive text in the header 1-tete2: Description 2 header

header3: Description 3 header4 header: header text 4

text description here on multiple lines

I mean, it is something like this:

Header1: descriptive text in the header 1-tete2: Description 2 header

header3: with a long Description 3 header

Description header4: header text 4

text description here on multiple lines

I am loading Xml is as follows (this has been anonymised and rafters has changed to "[]")

[? xml version = "1.0" encoding = "utf-8"?]
[config scrollPosition = 'right' styleSheet=".\stylesheets\cv.css']
[text]
[textformat tabstops = "50,540,590"]: [tab /] T [tab /] T [tab /] T [tab /]: [br /]
[list_by] Entered Date of CV [/ list_by]
[br /]
["headertext"] Date: [/headertext]
[tab /]
[itemheader] September 2010 - March 2011 [/itemheader]
[tab /]
["headertext"] Agency: [/headertext]
[tab /]
[itemheader] [a href ="http://www.xxxx.eu/xxxx.cfm"target = "_blank"] xxxxx [a] [/itemheader]
[br /]
["headertext"] Role: [/headertext]
[tab /]
[itemheader] ABAP programmer Application Maintenance SAP ECC 6.0 Finland [/itemheader]

[tab /]
["headertext"] Company: [/headertext]
[tab /]
[itemheader] [a href ="http://www.xxxx.com"target = "_blank"] xxxxx [a] [/itemheader]
[br /]
[br /]

There are closing tags appropriate further down in the file.

The CSS that relates to this is:

HeaderText {}
display: inline;
color: #008000;
}
ItemHeader {}
display: inline;
color: #FFFFFF;
}
{list_by}
do-size: 11pt;
text-align: center;
}
{to preamble
do-family: verdana_italic;
text-align: justify;
margin left: 150px;
right margin: 150px;
}
{sum_title}
text-align: center;
do-size: 11pt;
make-weight: bold;
color: #FFFF00;
}
{text}
do-family: verdana;
do-size: 9pt;
color: #FFFFFF;
}

And finally the Actionscript code:

content_mc.scroll_txt.setTextFormat = tFormat;
content_mc.scroll_txt.embedFonts = true;
content_mc.scroll_txt.html = true;
content_mc.scroll_txt.WordWrap = true;
content_mc.scroll_txt. Multiline = true;
content_mc.scroll_txt.condenseWhite = true;
content_mc.scroll_txt. StyleSheet = myCSS;
content_mc.scroll_txt. Text = sXml;

In order to get the CSS work around the dynamic text field settings, I use an empty TextFormat object tFormat.  The XML is loaded with ignoreWhite set to true.

Anyone any ideas?  Or I do not see the wood for the trees?

Concerning

Rich

as I said, it may be a bug.

and "unexpected" wasn't a good choice of words.  I expected because I'm familiar with the issue, but you're right, I wasn't expecting when I first met it.

Tags: Adobe Animate

Similar Questions

  • Problem with XML and different line break styles

    I'm working on a project that is being developed by some developers Flash Builder 4.6 running in Windows and some developers Flash Builder 4.6 running under OSX. We have difficulties due to the difference of newlines between the two environments. In an .as file with line breaks in style UNIX is similar to the following code:

    var XML = < document >

    < item >

    < / item >

    < / document >;

    xml.appendChild (SomeClass.getXML ());

    SomeClass.getXML () is located in a file .as using type line breaks Windows and is similar to the following:

    public function getXML (): XML

    {

    var moreXML:XML = < anotherElement >

    < childElement >

    < / childElement >

    < / anotherElement >;

    Return moreXML;

    }

    When the XML object is serialized and written to a file on a Windows computer, it looks like this:

    < document >

    < item >

    < / item >

    < anotherElement >

    < childElement >

    < / childElement >

    < / anotherElement > < / document >

    Line for all outside anotherElement breaks are of the form \r\n. Line breaks it contains are of the form \r\r\n, causing thus the empty lines. I'm guessing that the odd line breaks are the cause of the strange setting indented, as well. None of these problems occur when XML is added to the xml file .as that employees style UNIX line breaks.

    Is it possible to force the Flash Builder to use UNIX on Windows style line breaks? Otherwise, there are relatively specific to this problem solutions? Thank you!

    Section clarified

    I found a setting to force a certain style of line breaks: window-> Preferences-> General-> Workspace (delimiter line of file new text). The XML serializes as planned today.

  • Dynamic text called XML - how to create a line break

    I'm the filling of an area of dynamic text with xml elements that I call

    For example, I have two text fields and fill me help

    TextTime.texttest.Text = (bktrlXml.Row, [e.currentTarget.Ivar], .tester);

    TextTime.textName.Text = (bktrlXml.row [e.currentTarget.ivar]. NAME2);

    How do I fill in a dynamic text field using a combination of the two above?  I would also like to put a line break between the two elements.  I tried something like that and could not understand it

    TextTime.texttest.Text = (bktrlXml.Row [e.currentTarget.Ivar] .tester) + "/ n" (bktrlXml.row [e.cur rentTarget.ivar]. NAME2);

    Thanks in advance...

    -j

    Use the back slash, not oblique:

    TextTime.texttest.Text = (bktrlXml.Row [e.currentTarget.Ivar] .tester) + "\n" + (bktrlXml.row [e.cu rrentTarget.ivar]. NAME2);

  • Calculation floating field adds unwanted line break

    Using Livecycle Designer ES4 w / Javascript

    I have a numeric field PurchasePrice and a float DepositAmt field which is calculated using the this.rawValue = PurchasePrice.rawValue *. 3;

    In Design view, the container DepositAmt line looks like this:

    • 30% or {DepositAmt} thereby signed as a deposit;

    Preview the line looks like this:

    • 30% or

    with the agreement signed as a deposit;

    And after that a number entered PurchasePrice it looks like this:

    • 30% or 1 $000,00

    with the agreement signed as a deposit;

    I have other lines with '30% to include... '. "and no return is added.

    I have removed the line and retyped it

    I deleted the floating field and recreated

    I tried FormCalc with the same result

    Thanks in advance for any help!

    R

    I had various problems with floating fields, mainly with extra spaces being placed before and after a currency field. For example, I had an extra space between the field and the punctuation immediately following floating.

    If you select the type of field as "Digital field" and then configures the model of what follows, it should help. Remember to remove the spaces before and after the field floating, as you add them to the model.

    30% or {DepositAmt} thereby signed as a deposit

    num {("$zzz zzz zzz, zzz, zz9.99' ')}

  • Police in fixed width and premature line break?

    I use an old FM (7.1), windows, write a document with a computer code, using fixed-width fonts belonging to the family of mail, for the most part, 12 pt.

    FM doesn't seem to know how long the lines are: absolutely, he insists on the breaking of the good lines before arriving at the right margin. It doesn't with the fonts to variable width. I noticed that if I switch to a police fixed-width different (e.g. mail-> courier std) FM it stops at the same character position of the line, even if the length of the fragment he keeps on line 1 a a different length - as if the line length is calculated based on some internal width fantasy characters are.

    Does anyone have a fix or a workaround for this? Do you know if this problem is fixed in newer versions? It is a serious problem for this document.

    Thank you!

    Try to set DisplayUsingPrinterMetrics = we in maker.ini. This indicates

    FrameMaker to choose the number of pixels that matches line lengths. The

    Off default setting tells him to choose the number of pixels that appears

    the most obvious characters. This can lead to lines showing more or

    shorter than expected - if they still print correctly.

  • In v31.0, I can view is more 'raw' XML files with line breaks and ' &lt; ' and ' / &gt; ' characters. Is there a setting that will give me this option?

    Until a few days ago when I opened a file XML with Firefox, I see the content of the file appears with line breaks and ' < ' and ' / > ' and elements. Like this:

    fixed image in < typeOfResource > < / typeOfResource >

     <genre authority="marcgt">picture</genre>
     <genre authority="nmc">Print, Photographic</genre>
     <originInfo>
       <dateIssued encoding="marc">1884</dateIssued>
       <dateIssued encoding="marc">1884</dateIssued>
       <issuance>monographic</issuance>
     </originInfo>
     <language>
    

    Now, it will display like this:

     still image picture Print, Photographic 1884 1884 monographic eng electronic
    

    No tags or line breaks. I need to see the entire XML file. How can I configure FireFox to display this for me? One of my colleagues uses v31.0 and XML views with tags and the line breaks for him.

    For example, I was looking at files sitemap.xml (search Google for inurl:sitemap.xml). For those who have not declared a style sheet, you should always see the classic "source highlight: presentation

    Example: http://www.website.com/sitemap.xml

    Are the files that don't appear as similar planned by not declaring a style sheet?

    As a temporary workaround, you can view the source to see the original. Either:

    • CTRL + u
    • Right click > view Page Source
  • Closed captioning line break

    Is it possible to add newlines to captioning in Captivate? I was copy and paste my text from Word and adding line breaks there. But sometimes you just need a straight jump track and do not want to use the word.

    Yes.  Open the properties of the slide to the slide containing the CC that you want to change, and then click the Audio tab.  Now, click on the button captions and a new dialog box will open containing your text CC.  This is where you can control the timing of your subtitles as well.

    I hope this helps!

    Randy

  • PL/SQL formatter bug (line breaks)?

    Hello

    Developer SQL 3.0.04

    I'm trying to format my PL/SQL code.
    I have a problem of code written as a formatting string (between ") and containing line breaks.

    Example (code by default without formatting):
    begin
        -- build the query
        l_query := l_query || 
          'select distinct
            col1 as "A",
            col2 as "B.",
            col3||''.''||col4||''.''||col5 as "C",
            col6 as "D",
            col7 as "E",
            col8 as "F"
          from
            table1 inner join table2 on tbl1_id = tbl2_id1
            left join table3 on tbl3_id = tbl2_id2
            '||l_from||'
          where
            '''||in_report_to_compute||''' = ''PIL''
            and col5 = ''P''
            '||point_ui.get_where_for_point_query(in_source, in_report_to_compute);
        return l_query;
    end;
    When I have the format:
    begin
        -- build the query
        l_query := l_query || 'select distinct
    
    col1 as "A",
    
    col2 as "B.",
    
    col3||''.''||col4||''.''||col5 as "C",
    
    col6 as "D",
    
    col7 as "E",
    
    col8 as "F"
    
    from
    
    table1 inner join table2 on tbl1_id = tbl2_id1
    
    left join table3 on tbl3_id = tbl2_id2
    
    '||l_from||'
    
    where
    
    '''||in_report_to_compute||''' = ''PIL''
    
    and col5 = ''P''
    
    '||point_ui.get_where_for_point_query(in_source, in_report_to_compute) ;
        return l_query;
    end;
    And once again the format:
    begin
        -- build the query
        l_query := l_query || 'select distinct
    
    
    
    col1 as "A",
    
    
    
    col2 as "B.",
    
    
    
    col3||''.''||col4||''.''||col5 as "C",
    
    
    
    col6 as "D",
    
    
    
    col7 as "E",
    
    
    
    col8 as "F"
    
    
    
    from
    
    
    
    table1 inner join table2 on tbl1_id = tbl2_id1
    
    
    
    left join table3 on tbl3_id = tbl2_id2
    
    
    
    '||l_from||'
    
    
    
    where
    
    
    
    '''||in_report_to_compute||''' = ''PIL''
    
    
    
    and col5 = ''P''
    
    
    
    '||point_ui.get_where_for_point_query(in_source, in_report_to_compute) ;
        return l_query;
    end;
    It seems to double line breaks + 1 each time:
    jump to 1 line
    3 line breaks
    7 line breaks
    15 line breaks
    line breaks 31
    etc.

    I unchecked all the trainer configuration, with the exception of the CASE line crossings.
    Commas with line number: 1
    Width Max Line: 999
    Threashold for SQL small: 999

    How can I avoid this?

    Thank you.

    Yann.

    Hi Yann39

    Workaround: use Chr (10) instead of multiline strings.
    See Re: Trainer code break my literal "Asunder"

    Reproduced and connected
    Bug 14114689 - TRAINER of CODE BREAKING MY LITERAL ASUNDER (to the AID of MULTI LINE LITTERAUX)

    -Turloch
    SQLDeveloper forum

  • Line breaks ignored when using text HTML CSS and embedded fonts

    Someone at - it find it.
    When you use a style sheet with html text in a dynamic textfield with embedded fonts line breaks are ignored. It's as if TextField.condenseWhite is set to true. Essentially the < p > tags are treated as a < br / > tag.

    If I do not incorporate fonts, it works fine. Another weird thing is that if I add an empty paragraph < p > < / p > between the first two paragraphs it makes any following paragraph behave correctly. for example

    < p > first text paragraph here < /p >
    < p > second text paragraph here < /p >
    < p > third text of paragraph here < /p >

    poster as if there are < br / > between each of them.

    But

    < p > first text paragraph here < /p >
    < p > < / p >
    < p > second text paragraph here < /p >
    < p > third text of paragraph here < /p >

    behaves correctly even for the third paragraph.

    Here is the code that I work with (by using XML as I am filling dynamic textfield to XML)

    any help much appreciated

    UPDATE:
    After reading http://www.kirupa.com/forum/showthread.php?t=307326
    I tried the same experiment using a TF designed in the IDE, the results for each, although the TextFields are essentially the same are totally different.

    Updated CODE accordingly - just need TF on stage, called "ideTextField" with the font "Arial".



    Ok
    I gave up to play with style sheets, try display: block, inline, different ways to format the XML data, in play with XML.ignoreWhiteSpace and XML.prettyPrinting etc.

    I went down the road of encodeURI, using a regular expression to remove all tabs, line breaks and the transport returns. This now gives consistent results for all situations, even incorporated and any fonts embedded.

    for example
    _TEXT:string = TEXT FROM XML, HTML TEXT etc.

    var st:String = encodeURI (_text);

    var model: RegExp = /(%09) + | (0 %) + | (0 % D) + / g ;

    St = st.replace (model, "");
    St = decodeURI (st);

    YOUTEXTFIELD.htmlText = m;

    The

    Tags always behave like a
    Tag, but you can add an extra
    to simulate a paragraph.

    Here is the example with the updates,

    Hope this helps someone

  • Causes of white space, tab, and line breaks slow in running the queries? What is the main reason behind it?

    Hi all


    I am facing a weird problem in the SQL query. Taken, I wrote the request with the spaces, tabs and line breaks after execution it slows down the database and finally, I have to restart the database again. But after removing the spaces the application went very well. I don't know what the problem causing this slow run, but after the removal of whitespace to query everything works fine. I've also confirmed plans to explain the two after the removal of whitespace and previously had the same results.

    I use the TOOL of DEVLOPER PL/SQL, SQL developer, Toad and Oracle 11 g.

    ***************************************************************

    For example. (in reference to my original query):

    Select

    *

    Of

    Double;

    ****************************************************************

    (After removing whitespace)

    Select * twice;

    *****************************************************************

    What would be the reason for white spaces causing slow performance?

    Please let me know if you need additional information on my question.


    Thanks in advance,

    HP

    If you make the first request without spaces and the second by spaces you will see, the second is even faster...

    The reason why are cached revenge...

    HTH

  • I need to find all of the XML elements and add a line break for the text of each of them

    I need to find all XML elements and to add a line break the text of each of them.

    Is it possible with a script?

    Try this piece of code as it is. I hope that's what you want...

    var myDoc = app.activeDocument;
    var inddRooElement = myDoc.xmlElements.item(0);
    var xPathElements = inddRooElement.evaluateXPathExpression("//*");
    var elementCount = xPathElements.length;
    for(var eId=0; eId
    

    ----------------

    Green4ever

  • Muse CSS output with line breaks?

    Is it possible to go back to the way Adobe Muse written CSS in how it used to, with line breaks and not one long stream?

    I use Muse to build quickly to the HTML and elements CSS that I take in a custom CMS that I built for my client basically build, modify and maintains its Web site. It works really well, but now I've upgraded to a newer version of Muse the CSS seems to appear as a constant stream no line breaks. I guess this is to draw down the size of the file, but it is extremely difficult to isolate and alter some elements. Y at - it an option to export the CSS with line breaks?

    {{I could use a search and replace in a code editor to replace the} to} \n, but I like Adobe Media and it doesn't support \n apparently.

    Thanks in advance

    A

    Disable this

  • CSS is now a line without line breaks?

    I need to change the css of a Web site. In the past the css was readable. Now, it's just a line without line breaks or paragraphs. Is - this intentional or y at - there a way to change the output?

    This is what it looks like now:

    muse_css_now.JPG

    That's what it looked like before:

    muse_css_before.JPG

    So far, I have not found a way to change this. Is there a way to change it, what it looked like before?

    Muse now has minifies CSS by default to improve page load time. If you want to return to the easier to read the CSS, there is a setting in the Properties dialog box for the Site, on the Advanced tab.

  • How to remove the default line break when you export in XML format?

    Hello

    I'm using FDK 11 to convert a FrameMaker to XML file. Basic example as in the "guide structured Import/Export API Programmer" works very well. But all my files frame long paragraphs which, then the conversion is a line break after a length that appear to be the default. Hereby, the length of the XML and the readability becomes tedious. Here is the snapshot of the transformation and the piece of code used. Please let me know if there is a function that allows to eliminate this default behavior.

    #include "futils.h".

    extern VoidT Structured_ApiEmergency ((VoidT)) FARGS;

    extern VoidT Structured_ApiInitialize ((init IntT)) FARGS;

    extern VoidT Structured_ApiCommand ((command IntT)) FARGS;

    extern VoidT Structured_ApiNotify FARGS ((IntT notification,

    F_ObjHandleT docId, sparm StringT,

    IntT iparm));

    VoidT F_ApiEmergency() {}

    Structured_ApiEmergency();

    }

    VoidT F_ApiInitialize (IntT init) {}

    Structured_ApiInitialize (init);

    }

    VoidT F_ApiCommand (IntT command) {}

    Structured_ApiCommand (Command);

    }

    VoidT F_ApiNotify (IntT notification,

    F_ObjHandleT docId, StringT, IntT iparm sparm) {}

    Structured_ApiNotify (notification, docId, sparm, iparm);

    }

    Export.jpg

    Thank you

    Vincent

    [Message moved from General Discussion by moderator]

    Hi Vincent,.

    You use a structured application? If so, you might try reading/writing as a rule:

    writer

    {

    line break is 1000 characters;

    }

    .. .or whatever length you deem appropriate.

    Russ

  • AS3 \n = line break, what would you say tab spacing?

    Hi all

    In AS3, we can format textfield to a line break using \n. And now I'm trying to find out how to use spacing of tab in AS3?

    I want to format my textfield to look like this:

    Name: Jane

    Age                  : 18

    Sex: F

    Currently, it looks like this (very ugly):

    Name: Jane

    Age: 18

    Sex: F

    Thank you

    -Zainuu

    Here is a list of additional escape characters including tab:

    http://livedocs.Adobe.com/Flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts & file = 00000948.html

Maybe you are looking for