Missing a single space in html output

Hello to all,
take a look at the following code copied from a View
<% DATA: eins TYPE STRING VALUE 'ClassEins',
         zwei TYPE STRING VALUE 'ClassZwei'. %>
<span id="Test1" class="<%=eins%> ClassZwei">test it</span>
<span id="Test2" class="ClassEins <%=zwei%>">test it</span>
it works fine if compression is set to NONE, but if compression is set to 1 (remove spaces) or 2 (remove spaces, CR, LF) the html output looks like this:
<span id="Test1" class="ClassEinsClassZwei">test it</span>
<span id="Test2" class="ClassEins ClassZwei">test it</span>
Where is the single space? What’s wrong? Why is the first space removed, but the second isn’t?

Thilo,
At this stage we are not planning a kernel patch, unless your business case is really pressing. (In which case update OSS message so that rethink why nein is the right answer.) We have actually spend a number of hours to find where this is stripped (by accident), and see that the price to fix this, is very high for us. The truth is that this is a minor problem that only happens when you active the additional compression, where our first suggestion would be to just skip the compression for this page. (All of this been said, we will keep it on the toDo list, and see if can get the resources at same stage to dive into kernel development again.)
(Just for interest, not even myself could remember where some of this code is executed. Your problem provided a nice trip down memory lane!)
As for the back tics, they are string literals, and are space sensitive in ABAP. An example:
  CONCATENATE 'a ' 'b ' 'c ' INTO s. --> s = "abc".
  CONCATENATE `a ` `b ` `c ` INTO s. --> s = "a b c ".
The nice thing about this is that it is now possible to write in ABAP strings that contain <b>both</b> HTML and JavaScript all in one:
  s = `<body onload="myFunc('JSparm');">`.
We use " and ' for the HTML and JavaScript, and the ` to build the ABAP string. Makes the Java colleagues just jealous of our writing style:)
brian

Similar Messages

  • HTML output and missing graph

    I am developing a report having a graph in BI Publisher 10.1.3.3.0. When the report o/p is genereated to PDF, the graph is showing up, but the same report doesnt return the chart in HTML output (it shows small icon in the place of graph). I followed Tim Dexter's blog http://blogs.oracle.com/xmlpublisher/2006/10/31 here. But, I didnt understand where i need to make the settings for 'Base image URI' and 'Image file directory' .
    In the Runtime configuration properties for this report, under HTML output, I see the foll.
    -show header
    -show footer
    -replace smart quotes
    -character set
    -make HTML output accessible
    -user percentage width for table columns.
    I even tried the o/p in excel and rtf but, the graph is missing in the o/p as well.
    Thanks in advance

    Can someone help me how to get the graph in HTML?

  • Help with formatting parameters in html output?

    Hi --
    I would like to use a style sheet to adjust the way that javadoc displays lists of parameters below each method. In the HTML output, the code around the parameter name and description looks like this:
    <dd><code>filterContainers</code> - True if the containers within the database
    are to be considered individually during task assignment; false if the entire database is to be assigned as a single task.
    </dd>
    I apologize if this is basic CSS question, but I don't understand how to change the way 'filterContainers' is formatted -- maybe make it italic or something. I was also hoping to increase the padding below each parameter name/description because they seem to squished together.
    Any help is greatly appreciated.
    Jen

    Add this to stylesheet.css to make "filterContainers" italic:
    dl dd dl dd code {
    font-style: italic;
    }This adds space below lines inside dd
    dl dd dl dd {
    padding-bottom: 3px;
    }(You could change it to padding-top to add the space above instead.)
    The sequence "dl dd dl dd code" is the nested hierarchy of HTML tags relative to body.
    Here are the CSS elements defined above: (CSS 2.0)
    http://www.w3.org/TR/2005/WD-CSS21-20050613/propidx.html

  • Reports 3/6i HTML Output Print problem

    Hi!
    I am using Reports 3 to generate HTML output but when I print this HTML output, it does not break at Oracle Reports Page break. It looks like the browser takes its default settings for margins. I am using IE 5.5.
    I tried the following options
    1. Using { page-break-after: always } option in 'After Page Value' of Report Escapes property (Report)
    2. Changing margin settings of browser, but was not able to change them to 0.
    I want to print the HTML report with page breaks where Oracle marks as Page Break.
    If possible, Please do write me at [email protected]
    Thanks,
    Praveen Kumar

    Praveen,
    When you generate a HTML page in Reports, you are generating a single page document that is then intepretted by the browser. You are correct that when you then print this page from the browser then it will not necessarily break at the same point as the reports page breaks.
    The only way to guarantee that you will get the same breaks is to use a different format. Most commonly people use PDF format when they want the printed page to match exactly what's on the screen. Alternatively you could include a link on the HTML rendition of the report that resubmits the report to the server but instructs the server to print the report directly.
    Hope this helps,
    Danny

  • DATA TRANSFER - How to get a SINGLE SPACE in downloaded txt file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Its there, I am talking abut this -
    OPEN DATASET - linefeed
    Syntax
    ... WITH { NATIVE
             | SMART
             | UNIX
             | WINDOWS } LINEFEED ... .
    Alternatives:
    1. ... WITH NATIVE LINEFEED
    2. ... WITH SMART LINEFEED
    3. ... WITH UNIX LINEFEED
    4. ... WITH WINDOWS LINEFEED
    Effect
    : These additions determine which line end marker is used for text files or legacy text files. If these additions are used, the profile parameter abap/NTfmode is ignored. Simultaneous specification of the values "UNIX" or "NT" in the addition TYPE is not permitted.
    If these additions are not used, the line end marker is determined as follows, depending on the operating system of the current application server:
    The line end marker for Unix is "LF". Under Unix, OS390 and OS400, only "LF" is used for reading and writing.
    The line end marker for MS Windows is "CRLF". Under MS Windows, however, the values of the profile parameter abap/NTfmode can also be used to set whether new files are handled according to Unix conventions or Windows conventions. If the profile parameter has the value "b", the Unix line end marker "LF" is used. If the profile parameter has the value "t" or is initial, the Windows line end marker "CRLF" is used. The setting using the profile parameter can be overridden with the addition TYPE and the value "UNIX" or "NT". If an existing file is opened without the addition TYPE, this is searched for the first line end marker ("LF" or "CRLF"), and this is used for the whole file. If no line end marker is found, the profile parameter is used. This applies particularly if an existing file is completely overwritten with FOR OUTPUT.
    If an addition WITH NATIVE|SMART|UNIX|WINDOWS LINEFEED is used, this setting can be changed for the open file using the statement SET DATASET. If neither of the additions is used, the line end marker also cannot be changed using SET DATASET.
    Notes
    : Without the use of an addition WITH LINEFEED, the line end marker is dependent on diverse implicit factors such as the operating system of the application server, a profile parameter, and line end markings that are already used. For this reason, the explicit use of WITH LINEFEED is recommended, which renders the use of the addition TYPE for setting the line end marker obsolete.
    The line end marker that is currently used can be determined for every open file using GET DATASET.
    Alternative 1
    ... WITH NATIVE LINEFEED
    Effect
    : This addition defines the line end marker independently of the access type according to the operating system of the application server, i.e. "LF" for Unix OS390 or OS400, and "CRLF" for MS Windows.
    The line end marker is interpreted according to the current codepage. If a code page is explicitly specified using the addition CODE PAGE, the characters of the line end marker must exist be available or be written in accordance with this code page.
    Note
    : The addition WITH NATIVE LINEFEED is intended for editing files on an application server that can also be accessed by other means. The addition receives the appropriate line end marker without the program needing to know the operating system.
    Alternative 2
    ... WITH SMART LINEFEED
    Effect
    : This addition depends on the access type:
    In files that are opened for reading using FOR INPUT, both "LF" and "CRLF are interpreted as a line end marker. When opening an EBCDIC file with the addition CODEPAGE, in addition to "LF", "CRLF", and the EBCDIC character strings, the corresponding ASCII character strings are also recognized. In addition, the EBCDIC character "NL" (line separator) is also interpreted as a line end marker.
    In files opened for appending or changing with FOR APPENDING or FOR UPDATE, the program searches for a line end marker that is already used in the file. In this process, first the end of the file is identified. If no line end marker is found there, a certain number of characters at the beginning is analyzed. If a line end marker is found, this is used when writing to the file. This is also affected by the addition CODE PAGE. For example, ASCII line end markers are recognized and used in a file opened with EBCDIC, but not the other way round. If no line end marker is found or no search is possible (for example, if the file is opened with the addition FILTER), the line end marker is determined according to the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    In files opened for writing using FOR OUTPUT, the line end marker is determined according the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    Note
    : The addition WITH SMART LINEFEED is intended for the generic editing of files in heterogeneous environments. The line end marker is recognized and set for different formats. The use of this addition is the best solution for most application cases.
    Alternative 3
    ... WITH UNIX LINEFEED
    Effect
    : The line end marker is set to "LF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available or be written according to this code page.
    Note
    : The addition WITH UNIX LINEFEED is intended for editing Unix files in which the specific line end markers are to be retained, even if the operating system of the current application server is MS Windows.
    Alternative 4
    ... WITH WINDOWS LINEFEED
    Effect
    : The line end marker is set to "CRLF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available and be written according to this code page.
    Note
    : The addition WITH WINDOWS LINEFEED is intended for use with MS Windows files in which the specific line end marker is to be retained, even if the operating system of the current application server is Unix, OS390 or OS400.

  • Tabs in HTML output

    We have a very large RoboHelp for Word project (24 source
    files, 2500 topics). Do to Vista issues we are converting from
    WinHelp to HTML output.
    In the Word source files, allignment (within lines) is
    controlled by left Tabs. The WinHlep output is fine. It appears the
    the tabs (as well as multiple spaces) are ignored in the
    HTMLoutput. A review of the HTML spurce code reveals that tabs are
    coverted to &nbsp on compilation.
    What are my options?

    > I do suppose there is always the option of continuing to
    author using RoboHelp for Word. After all, you may use this
    > to produce HTML Help and WebHelp outputs too. But if you
    are creating HTML outputs you may as well be using a
    > tool created to work with such files, no?
    With all due respect, Rick (and much is indeed due in the
    right contexts) this doesn't help the original poster. The tabs
    issue is as you point out a quirk of the HTML world, and the only
    benefit of moving to an HTML editor in that respect is to make it
    apparent up front that tabs can't be handled sensibly. As you say,
    get used to it - if you are using HTML-based output, you can't line
    things up with tabs. You can use tables, but that's a major editing
    operation with 2500 topics whatever tool you are using to write the
    help. I suppose the dignity of the problem depends on how important
    the lining up is in the final output.
    I may be reactionary, but I stick to Robohelp for Word even
    when I am generating Webhelp format. Sure, there are drawbacks, but
    IMHO Word offers a vastly superior authoring environment to
    one-topic-at-a-time HTML editors. The HTML editor might be a tool
    created to work with HTML files, but that doesn't automatically
    mean it's a good tool for the job.

  • Preserve a single space at the end of line using spool command

    Hi,
    Can you please help me to write the result of an sql query into a file with the last column of the row ending with a single space?
    For example:
    COL1DATA|COL2DATA|COL3DATA<space1>
    As mentioned in the example the col3 value in the file should end with a single space. And there should not be any delimiters at the end of the row.
    I tried with set trimspool on/off. But, it didn't work. When I say trimspool on - it is trimming all the trailing spaces.
    When I say trimspool off - it is retaining all the trailing spaces to the size of the line.
    But, I do not wish to modify the file through shell commands once it is written thru spool. I mean I do not wish to append spaces to the end of a line using shell script or any other method.
    I do not wish to use other methods like UTL_FILE also.
    Please help me how to do it using spool command?
    Thank you.
    Ramana

    My requirement is that all the trailing spaces should be truncated except the last one in the row.Why?
    As you have discovered a single column in sqlplus, is always a fixed length regardless of the size of the data, if the length of the data varies the output is padded to the maximum or line size with spaces. The trim and trimpsool commands are there to remove all the spaces from the end of a line if there are any. There are no commands to trim all the spaces except one, or even to trim all the spaces except two, or three even.
    If you want such custom processing you should post process the file in the OS using sed, awk or perl or something designed for such things.

  • Remove single space in a text file

    In a text file data having single space , how to remove the single space using java program?
    Kindly reply ASAP.
    Thanks in advance
    Regards,
    Lakshmi

    It is seem that read a text file, then remove space from the string, Then output to other file.
    import java.io.*;
    public class eric_io {
    public static void main(String[] args) throws IOException {
         File inputFile = new File("input.txt");
         File outputFile = new File("output.txt");
    FileReader in = new FileReader(inputFile);
    FileWriter out = new FileWriter(outputFile);
    int c;
         System.out.println("Input from " + inputFile);
    while ((c = in.read()) != -1)
    out.write(c);
    in.close();
    out.close();
         System.out.println("Output to " + outputFile);
    }

  • Getting question marks in html output when xml file has an mdash or rsquo

    I have a java servlet that gets an xml file out of ifs, applies
    a style sheet to it, and sends it to the browser as html.
    I have:
    DOMparser parser = new DOMParser();
    parser.parse(XmlUrl);
    The characters ampersand, greater than, less than, and
    apostrophe work fine.
    HOWEVER, When the xml file has an mdash(&#X2014) or a rsquo
    (&#x2019) in it, my html output in IE shows up with question
    marks where these characters are supposed to be.
    Does anyone know what I can do to fix this? I don't understand
    why it would work with some special characters and not others?

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

  • Error in generating HTML output using Central Output Pro Server 5.5

    I am getting the following error while generating HTML output using the Output Pro Server. A new printer was created with the Physical Device as "HTML Template Generation - [html]" and added to the Job.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](1801) The printer name is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3015]Error, unable to open printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3008]Error, unable to get info about device 'PAYMENTADVICEHTM.html' attached to port '<nil>'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](183) Cannot create a file when that file already exists.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [2]Error opening output device/file 'PAYMENTADVICEHTM.html'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](6) The handle is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3018]Error ending page on printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]Nothing was printed.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [3018]Error ending page on printer.

    If I were to guess, I'd guess that your filename is invalid. How about removing all special characters (spaces, brackets, etc.) from the device name. Also, make sure your form was compiled for HTML.
    I haven't actually used the HTML driver, but these are general things you should do if you have trouble with any Central driver.
    Regards,
    Rob McDougall
    Indigo Pacific

  • Extra white spaces in JSP output

    Hi,
              My JSPs contain a large use of JSTL and other custom Tags.
              The problem is that the output contains too many new lines and spaces.
              I found out that APACHE Tomcat has a servlet parameter (trimSpaces=true) that solved this problem.
              Does Weblogic (9.1) have something similar ?
              Does JSPC / APPC have a special options that can solve this ?
              please advise,
              Avivi.

    Before diving into this, one thing I would ask you: Why does it matter if there are extra spaces? Did you determine that your primary users are using a slow connection? Before trying to optimize this, make sure that you really have a problem to solve. You might try saving off the currently generated HTML into a test page, and compare it to a similar one with all ignorable spaces removed. If you see no difference in performance, then don't bother doing this.
              Nevertheless, one strategy for reducing empty space in JSP output is to put the ends of the JSP directives and actions on the next line, with no newlines after them.
              For instance, a pair of lines like this:
              <%@page import="foo.bar" %>
              <%@page import="bar.foo" %>
              Would be instead:
              <%@page import="foo.bar"
              %><%@page import="bar.foo"
              %>

  • How to append leading spaces in ALV Output

    Hello Experts,
    Is it possible to append leading spaces in ALV Output? We want to have a functionality that will show the output like a hierarchy in a column.
    Thanks a lot for your help.
    Example:
    WBSElement
    WBSELEL01VL2
        WBSELEL01VL3A
             WBSELEL01VL4X
                 WBSELEL01VL5W
                 WBSELEL01VL5Z
             WBSELEL01VL4Y
                 WBSELEL01V5P
                 WBSELEL01V5Q
        WBSELEL01VL3B
             WBSELEL01VL4L
                 WBSELEL01VL5H
                 WBSELEL01VL5T
             WBSELEL01VL4M
                 WBSELEL01V5C
                 WBSELEL01V5D
    Edited by: sam jose on Dec 1, 2009 4:01 PM

    Thanks, Nilesh.
    Sorry for the delayed response. I have modified the ITAB with that logic and I see the indentation now (in Debug Mode of T_PLAN). 
    However, when I display the ALV output though, it disappears.
    I am using the following method.
    data: plan_control   type scrfname value 'TOOL',
          plan_container type ref to cl_gui_custom_container,
          plan_grid      type ref to cl_gui_alv_grid,
          plan_fieldcat  type lvc_t_fcat,
          plan_layout    type lvc_s_layo.
      if plan_container is initial.
        perform plan_fieldcat_init using plan_fieldcat[].
        create object plan_container
          exporting
            container_name = plan_control.
        create object plan_grid
          exporting
            i_parent = plan_container.
        plan_layout-cwidth_opt  = 'X'.
        plan_layout-zebra       = 'X'.
        call method plan_grid->set_table_for_first_display
          exporting
            is_layout                     = plan_layout
          changing
            it_outtab                     = T_PLAN[]
            it_fieldcatalog               = plan_fieldcat
          exceptions
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            others                        = 4.
      endif.
    Can anybody please let me know if I am missing anything?
    Thanks again.
    Edited by: sam jose on Dec 8, 2009 8:44 PM

  • I have Windows 7 Home premium, I likeed Wordpad to just type a letter or a document when I had XP, but now the program will not single space . I did everthing i

    I am unable to "single space" a document in Wordpad now that I have a new emachine with windows 7 preinstalled. I used Wordpad when I had Windows XP OS and loved it,however in the menu of Wordpad 7 at the top of the app it shows what to click to single space your document, but it does not work. I researched the problem with different sources, and all said they were experiencing the same issue. I liked Wordpad program in Xp to just type simple documents and letters, but I cannot use single space in Window 7.
    Does anyone know how to address this issue. I just want a simple program that is easy to understand.
    Thank you,
    Very_sr

    Maybe one of these answers will work for you. I found these in Google with "wordpad windows 7 single space" (quotations included):
    *http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/how-do-i-get-wordpad-to-single-space-i-have-tried/d2fa34e0-4b4b-473d-8cf3-b42bf0c9e9b5?msgId=a1d56306-a092-4f13-9919-cb19de4ae936
    *http://smallbusiness.chron.com/set-line-spacing-wordpad-44510.html
    *The following suggestion requires changes to the Windows Registy. Perform these suggestion ONLY if you feel confident enough to alter the Registry. Making a mistake can damage your Windows installation and can, in extreme cases, make your computer un-bootable.
    **http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/how-to-retain-personal-font-settings-in-wordpad/35e3a1c6-9dbd-4a7d-b291-a931ac9ea5d6
    A WordPad (Windows 7/8) reference - http://www.7tutorials.com/how-work-new-wordpad

  • How To Access PAGE ITEM (single row) from HTML source

    Hi Guys,
    I have a page Item that return a string.
    I would like to show this string
    How To Access PAGE ITEM (single row) from HTML source?
    My desire final output is
    <marquee>:P1_PAGE_ITEM</marquee>
    Can please help me
    Thanks

    Hi,
    You can refer the page items in your page header as &itemname. For example, if I have page item P15_TEST, I will add the following in header:
    <marquee>
       &P15_TEST.
    </marquee>But make sure that you have a process before header to populate the value in your page item. Otherwise, there will be a null scrolling (which you can't see!) :)
    Regards,
    Zahid

  • Customizing Cp HTML output

    I'm looking for a little assistance regarding the best way to insert an HTML + Flash wrapper around the wrapper that is automatically generated by Cp4 in its HTML output. I'm a FL newbie/intermediate DW user, and I don't want to screw up the existing scripting in the HTML template files.
    So I guess my question really surrounds best practice for adding a header/footer/maybe rt-or-left nav frame around the content that CP produces. Would anyone who has done this be willing to share some code (stripped of your content, if you prefer) that might help me achieve this?
    Or, if I'm thinking about this in entirely the wrong way, can someone point me in the right direction? I feel like I'm being particularly dense about this!
    Thanks in advance!!
    A. Stringer

    Hello Brian and Marcel:
    I have the same question as you did. Did you get any further
    information about this? I am dying for a solution. If anybody
    has a solution, please share with us. Thanks.
    Brian Lin (guest) wrote:
    : Hi all,
    : Marcel, I got the same questions (problems) with you did. I
    have
    : been searching this topic for long time, still I can not have
    : right materials. Recently AMAZON (www.amazon.com) will have
    : Oracle JDeveloper 2.0 (ISBN: 0072120983) on the market, but
    I'm
    : not sure what's the contents inside talking about DBServlet.
    : Good luck!
    : Brian Lin
    : Marcel Sansaricq (guest) wrote:
    : : Hi everyone,
    : : I am a new user of JDeveloper 2.0. I have been trying to
    : : understand how JDeveloper's Wizard generated Database
    Servlets
    : : generate standard HTML pages for Querying, Updating,
    inserting
    : : database records. The InitializeDBServlet method that is
    : : generated by the DBServlet Wizard provides very little
    insight
    : : into the HTML generation engine.
    : : The JDeveloper documentation gives some hints on customizing
    : : Servlet HTML output in section "Creating a Custom HTML
    form".
    : : Basically, it recommends to use
    : : methods provided in oracle.jdeveloper.servlet.DBServlet,
    : : oracle.jdeveloper.servlet.UserSession,
    : : oracle.jbo.rt.cs.RowIterator and oracle.jbo.rt.cs.Row
    : interfaces
    : : to implement custom HTML forms that servlets can generate.
    : : The documentation files for oracle.jbo.rt.cs.* interfaces
    are
    : : missing within the JDeveloper help menu and coverage on
    : : oracle.jdeveloper.servlet.DBServlet,
    : : oracle.jdeveloper.servlet.UserSession is very basic.
    : : Can anyone point me in the right direction to get thorough
    : : documentation, containing examples if possible, on the
    : mentionned
    : : interfaces.
    : : Thanks in advance,
    : : Marcel Sansaricq
    null

Maybe you are looking for