Keep white spaces and carriage returns?

I'm viewing a column -VARCHAR2(4000)- in a standard report column.
The column value contains white spaces and carriage returns.
I put "white-space:pre;" in CSS Style, but it still skips carriage returns...
What can I do to view white spaces and carriage returns?
I'm using apex 3.0 and IE 7.
Saad.

I'm using apex 3.0 and IE 7.There's your problem...
IE6 (and, since there don't seem to be any docs saying anything different, presumably IE7) don't support white-space: pre in quirks mode. Don't ask me why - probably in one of MS efforts to "not break the web".
All the APEX built-in templates are rendered in quirks mode as they don't supply complete DOCTYPEs. If you are using a standard APEX template or a custom template without a complete DOCTYPE declaration you are probably seeing this quirks behaviour.
It looks like this will change in IE8.

Similar Messages

  • Removing new lines and carriage returns

    Hi,
    SO I am new to regular expressions in java and I want to remove all the new lines and carriage returns from some text, and change them into <p>
    I have tried,
    Pattern pat = Pattern.compile("\n");
    Matcher mat = pat.matcher(text);
    StringBuffer sb = new StringBuffer();
    boolean result = mat.find();
    while (result){
    mat.appendReplacement(sb,"<p>");
    result = mat.find();
    mat.appendTail(sb);
    text=sb.toString();
    But it seems to have no effect. Anyone know what I'm doing wrong?
    Cheers
    Sandra

    Hello, i've got the same problem. I want to replace "carriage return" and "new line" from an text file. and i use the replace all function for a String object. The problem is, if i call the replace function like this:
    row = row.replaceAll ("\\r", "<p>");
    The "carriage return" is replaced, but not with the "<p>" characters, only with nothing.
    Lines from my original textfile:
    This is an example.
    I want to replace.
    After replacing with the function call row = row.replaceAll ("\\r", "<p>");
    This is an example.I want to replace.
    What is wrong. If i insert tab spaces and replace them, everything is fine. it is abug in my Java Version?
    I use j2re1.4.2_05
    I hope, anybody can help me

  • Please explain me how I can use Form feed(\f) and Carriage return(\r)

    what is Form feed(\f) and Carriage return(\r)?
    Please explain to me.
    Thank you.

    These control characters aren't used much these days except that if you example a Windows or MSDOS text file in a binary editor you'll find each line ends with "\r\n". However when reading or writing text through classes these carriage returns will be added and removed automatically so your program doesn't see them.
    The controlls date back to teletype machines which operated rather like typewriters. Cariage return, as it's name implied, caused the print head to move back to the start of the line, line feed advanced a line (without, necessarilly, returning the carriage) and formfeed skipped to the next page.
    Newline on these machines was always "return, linefeed" because executing the carriage return on these machine could take too long. The early machines had only a single character buffer so that they had to executed the characters as quickly as they arrived. So doing the linefeed after the carriage return gave the carriage more time to return. On some teletypes if you did "linefeed, return" then the first character of the new line would often be printed somewhere in the middle of the line.
    This is the origin of the MSDOS/Windows end of line sequence.
    Many printers will still respect formfeed if printing is direct. Some will take carriage return without linefeed to allow you to start again overprinting the same line.
    However printing, these days, is seldom direct but done in bitmap form.

  • Why would white space and line breaks in sql query increase runtime

    Using 11.2.0.3.0 on unix sprac server, 8 cpus 32 cores 12TB storage. We have 16 batch servers doing inserts and ~100 users doing mostly queries.
    We have a wierd issue,  we have a long query that takes 30 seconds to run 1st time then 10-20 secs every other time. Based on knowledge of DB we expected it to take a lot less.  Then a developer reformatted it by taking removing extra white space and line breaks.  all of sudden query takes 6 secs first time and 0.8 every other time.  we tripled checked to ensure they are identical and that only difference is white space and line breaks.  We tried it with SQLDeveloper, TOAD, SQLPLUS, from out desktops, appserver. we could reproduce it every time, with white space 10-20 secs without it 0.8 secs.  Query is 200 lines long with white space 30 without it.
    Why would having white space make such a dramatic difference?  because the query is longer eventhough its identical?  We checked parsing times, etc, no difference.  Is there some network setting, oracle parameter, sqlnet setting?  We spent hours looking on google and found nother
    Slow:
      SELECT grt_student.student_id                                                                                                                                                                                                 
    AS student_id,
      grt_student.last_name                                                                                                                                                                                                       
    AS last_name,
      grt_student.first_name                                                                                                                                                                                                      
    AS first_name,
      grt_buyerinstance.buyerinstance_id                                                                                                                                                                                            
    AS buyerinstance_id,
      grt_buyerinstance.buyerfamily_id                                                                                                                                                                                              
    AS buyerfamily_id,
      grt_buyer.buyerfamily_acronym                                                                                                                                                                                                 
    AS buyerfamily_acronym,
      grt_reporting_utls_pkg.convert_gmrt_battery(grt_buyerinstance.buyerfamily_id,grt_buyer.battery)                                                                                                                                
    AS battery,
    fast:
    SELECT grt_student.student_id 
    AS student_id,  grt_student.last_name
    AS last_name, grt_student.first_name   AS first_name,  grt_buyerinstance.buyerinstance_id   AS buyerinstance_id,  grt_buyerinstance.buyerfamily_id
    AS buyerfamily_id,
      grt_buyer.buyerfamily_acronym  AS buyerfamily_acronym,  grt_reporting_utls_pkg.convert_gmrt_battery(grt_buyerinstance.buyerfamily_id,grt_buyer.battery)   AS battery,

    Do you have some sort of horrific network connection between the client and the database such that it would take 8.5 seconds to transmit a few kb of SQL to the server?  That seems most unlikely.
    How are you determining the query plan?  Are you absolutely sure that both SQL statements have the same plan_hash_value when they are actually executed (not just when you generate a query plan without executing it)?  What are the differences in wait events when you execute the two?
    The sql_id will change when you add or remove whitespace.  There are various methods of modifying query plans that are tied to a sql_id.  My wager would be that you have a profile/ outline/ etc. that is not there for the reformatted one which is causing a query plan difference.  My next guess is that you have an accepted plan for the old statement, you haven't set up a process to let the plan evolve, and the reformatted statement starts with the plan that the old statement would get if you allowed the plan to evolve.
    Justin

  • XSL and carriage return problem

    I'm using an HTML form to get the input text from the user.
    The text is stored in an XML file and after that I use XSL transformation
    to show the text as HTML file.
    The problem is with carriage returns that user has entered.
    In HTML file I see &#13;
    In my java code I tried to replace all &#13; with <br> but It sounds there is no &#13; when I
    look in my XML content in a java string variable.
    Any Idea?
    Thanks,
    Payam

    Store the user-entered portion in a <![CDATA[Data goes here]]> tag to preserve whitespace and carriage returns.
    - Jesse

  • Migration and Carriage Returns Problem

    I'm trying to migrate from Now Up To Date a Palm based 3rd party app - to Address Book in order to get get ready for and buy an iPhone. But all contacts with carriage returns in my NUTD contacts (doulble address lines and in Notes) look like this in Address Book after importing:
    Title: ¶Description: Serial Number: BD0C159 ¶TSID Number: 10040150 ¶Model: SCSI Card AV-2906¶¶¶
    Instead of:
    Title:
    Description: Serial Number: BD0C159
    TSID Number: 10040150
    Model: SCSI Card AV-2906
    I have over 1000 contacts many of which have carriage returns. Will I have to fix these manually?
    Thx,
    Steven

    Store the user-entered portion in a <![CDATA[Data goes here]]> tag to preserve whitespace and carriage returns.
    - Jesse

  • My m ac os x 3 keeps jumping spaces and highlights all by itself?

    my m ac os x 3 keeps jumping spaces and highlights all by itself. sensitive to touch have to keep my hands not resting on computer and then its works??
    any feedback appreciated.

    Wow, could be most anything at this point.
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport in 10.4 & below, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Oracle Reports 6i Delimied Format and Carriage Returns

    Hi
    I'm using Oracle Reports 6i to generate a report to a text file using delimited format so I can read it in Excel. I've done some testing putting some information in the layout but it seems that all my data is generated in one line. It does not generate the carriage return for the multiple rows I need. Is this standard functionality?. If so, that means I have to generate the file using PL/SQL to get the control I want?

    Whew...lot's of questions...let's see if I can help (at least a little)...
    1. Quite possibly, the user is/was pulling the image from the database? I do this in my environment, so it might be worth a look.
    2. You should be able to print in any format from the web. You may need to adjust your destype/desname/desname parameters.
    3. Only thing I can think of here is that maybe the original report was not written using a standard web-friendly font?
    4. There's a couple of ways you can get data into an excel file:
    A. Use DDE and poke the data right into it (messy when you need to print the regular Oracle report too).
    B. Add an option to print to file and set the desformat to DELIMITEDDATA. Be sure to go through the data model and set Exclude from XML Output to 'Yes' for fields you don't need. Also, be aware that this may not come out in the same order as they do on the printed report. You can read about this on Metalink.
    Hopefully that helps you a little bit. :)
    Chad

  • Why is the picture of the flash banner or video of the flash player showing only a white space, and when I click on it, it plays only the sound, but no picture?

    On other browsers the videos are playing. But in firefox4 I don't see the video at all. But if I click in the center of the white space the video starts to play so I hear the sound.
    Since this was the case I upgraded all my plugins and yet no change.
    The websites are: http://www.bibletube.tv/
    http://www.comeandfollow.me/
    but in fact on many other website I find the same problem. Some flash works and other don't

    Maybe these will help:
    https://discussions.apple.com/message/17677533#17677533
    https://discussions.apple.com/message/18324129#18324129
    https://discussions.apple.com/message/18203126#18203126

  • Sql Loader and carriage returns

    I am currently trying to use sql loader to load data from flat files that was extracted from sybase using bcp and delimited with pipes. There are text and varchar columns that contain carriage return line feeds. I want to preserve these, but I can not load them into Oracle 8.05 using sql loader as it interprets them as end of record indicators. Does anyone have a way to solve this problem? Any assistance would be appreciated.
    Thanks in advance,
    Jignesh

    External tables are accessible from SQL, which generally simplifies life if the data files are physically located on the database server since you don't have to coordinate a call to an external SQL*Loader script with other PL/SQL processing. Under the covers, external tables are normally just invoking SQL*Loader.
    SQL*Loader is more appropriate if the data files are on a different server or if it is easier to call an executable rather than calling PL/SQL (i.e. if you have a batch file that runs on a server other than the database server that wants to FTP a data file from a FTP server and then load the data into Oracle).
    Justin

  • JeditorPane text selection problem due to line feeds and carriage returns

    Hi folks,
    I have a jEditorPane (text/plain) that contains a document in which the user has highlighted some text. I want to pull the selected text from the pane, do some processing on it, and then put the altered text back in the same position.
    First I get the starting and ending position of the highlighted text
    int mySelStart = myJEditorPane.getSelectionStart();
    int mySelEnd = myJEditorPane.getSelectionEnd();Then I get all the text from the pane and (in theory) strip out the portion the user highlighted
    String myPaneText = myJEditorPane.getText();
    String mySelectedText = myPaneText.substring(mySelStart,mySelEnd);But the text string in mySelectedText never matches what the user originally highlighted. The starting and ending positions are off by the number of carriage returns that proceed the highlighted text in the document. It appears that while in the jEditorPane Java treats the carriage return as one characters, but once the info is in the myPaneText field Java treats the carriage return as two characters.
    Has anyone encountered this before? Am I doing something wrong? To fix the problem I'm looping through the entire document to find out how many carriage returns proceed the highlighted text, but there has to be an easier way.
    Thanks

    It appears that while in the jEditorPane Java treats the carriage return as one
    characters, but once the info is in the myPaneText field Java treats the carriage
    return as two characters.Correct on a Windows platform. Check out my posting here for a one line solution:
    http://forum.java.sun.com/thread.jspa?forumID=31&messageID=1464594

  • White Space and Centering Help

    Hi All - I'm so sorry to ask this as I am sure it has been
    asked a million times just today... I just can't seem to find the
    answer! I have the books, I have googled it.... I'm stuck!
    (obviously I'm a beginner!)
    So my question is: How do I get my webpage to "center" or
    "expand" to the monitor, and how do I get rit of the white space
    around my site??? I've looked at the code.... I just can't seem to
    figure it out!! I have Dreamweaver 8... my website is
    here... please take a
    look... any help will be MUCH appreciated!
    Thank you!!

    quote:
    Well thanks for the kind words about my site! When I view it
    in a larger-than-normal screen my page is to the left and there is
    lots of white space to the right.... thought it made the site look
    unprofessional, as I don't see other sites like this... is it just
    that the other sites I see are written with a different type of
    script?
    I should think that they are produced for narrower screens.
    My screen resolution is 1280 X 800, and I find it quite typical --
    especially for a lap top. When I opened your sight I could not see
    all of the content and was compelled to scroll to the right or
    widen my viewing window for full visibility.
    quote:
    I’m completely self-taught and designed my site before
    getting my books…. Now I can’t even answer my own
    questions from my books! Ha!
    I am also self-taught, but have learned
    primarily from the software manuals that accompany my software,
    online tutorials, Google searches, and more recently this forum.
    If you want to design a webpage to fill a large screen, but
    still be very viewable for those with smaller screens, then you
    must make the content expandable. The dimensions of your content
    are all fixed.
    The suggestions that I have provided are an easy fix, but I
    fear those more knowledgeable than myself may tell you to start all
    over again -- well maybe not completely, as you have some very nice
    elements.
    Roddy
    CODE OF CONDUCT: My entries in this forum are provided free
    of any and all commercial gain related to webpage production. I
    will neither lure, conceal, nor defame in an effort to obtain
    commercial gain from those whom I assist. Moreover, my motoviation
    for participation in this forum is to exchange knowledge and
    experience in an open environment free of false pretension with
    regard commercial gain.
    WARNING: Let forum participants, especially junior members,
    beware of other forum participants that do not abide by this same
    principle of good conduct.

  • Remove white space and indent code in Dreamweaver CS5

    Ive inherited some code which has loads of randomly placed spaces and line breaks. With Dreamweaver CS5 is it possible to clean up the code so its nicely indent like this?:
    <div>
         <div>
              <div>
              </div>
         </div>
    </div>

    Yes, you can have Dreamweaver indent your code by going to the "Format Source Code" button on the toolbar and selecting "Apply Source Formatting".
    You can edit the way that your text is formatted in Preferences > Code Format

  • New line character and carriage return in XML, please help, thanks

    In XML, "&#10;" is only the new line character. I have tried that. If you put that in your XML, for example:
    <tag>line1&#10;line2&#10;line3</tag>
    You will get the output as follow:
    line1
    ____line2
    ________line3
    (where ___ represents space)
    The output that I want is actually like:
    line1
    line2
    line3
    So I would like to ask how I can do this.
    Thanks,
    Jackie

    while parsing your XML file you can directly suppress these newline and similar things in characters() method of SAX parser.
    you can opt to do nothing when you encounter them else if it is normal character then use it to print it.

  • Safari keeps blanking out and phone returns to the desktop

    hello...this problem just started over the weekend...
    i keep losing my safari...it just blanks out and goes back to the desktop. i have to tap safari again, and the website reloads...
    it happens most when i'm scrolling/flicking up or down on the page...
    any info would be apreciated...thx

    buj,
    Try doing a hard reset of the phone and see if the issue continues:
    Hard Reset: Hold Down the Home and Sleep button until you get a apple logo on the screen.
    If the issue continues with safari on the iPhone, then you will need to restore the software on the phone.
    http://docs.info.apple.com/article.html?artnum=305744

Maybe you are looking for

  • Unable to run jar file without lib folder containing swing-layout-1.0.jar

    I have done my project through NetBeans 5.0. Eventhough I have copied my lib foloder containing swing-layout-1.0.jar inside my project.jar, I am still unable to run my project.jar in other systems, it is creating an error as Could not find the main c

  • Does Apple have a Virtual University like Microsoft Virtual University

    I'm and up an coming IT student barely 30, I want to learn hints and task to help my users. Is there a Mac/OS or Virtual Machine esq, Virtual University to do this in. Equal or better than Microsoft's Virtual University that exist at www.microsoftvir

  • How do i convert m4p to m4a so I can use in serato dj?

    I just purchased a pioneer ddj-sx and serato dj. I'm trying to import some songs from iTunes and serato will only import m4a files and not m4p.  Can I convert my purchased iTunes songs from m4p to m4a?

  • Problems with XsltListViewWebPart and Migrated Libraries

    I have migrated some libraries and lists from SharePoint 2007 directly to SharePoint 2013 (using some creative scripting). While this mostly works, I have a few stubborn libraries that refuse to work properly. The problem seems to be focused around t

  • Lightroom 2.1 Auto import file naming adding -1

    I have used lightroom's (2.1) auto import function on 5 separate shoots with no problem. On my last shoot lightroom has been adding a "-1" to the file name. I am using "Custom name - Original File". So what used to be "Jen-1007" is now "Jen-1-1007",