HTML code displays on one line in browser view source

Hi,
In Dreamweaver, my HTML code displays returns, spaces, etc. However, in the view source option in a browser (Firefox in particular), all the code is displayed on one single line. I only found about this because I was having problems with my Google Ads not displaying. (A Google customer service person helped me to find a workaround for this since I still haven't figured how to get my code to display correctly.) So I have gone to Preferences in DW and changed my Code Format Line Break type. The result is the same with each of the three options: the code is all on one line when you check it under view source in a browser. (The server is Linux.)
Does anyone know how to fix this? Also, I think I know how this happened in the first place. I copied my code to TextEdit for a quick backup the other day, and then I pasted it back to DW. Bad idea? Is the only way to get the code back to normal to re-write it in a new HTML file in DW?

Pssh. Problem solved, but I'm not quite sure how. I did go back and try to clean up some redundant CSS and other things, but the HTML/CSS validator still shows that I have this one invalid <header> tag (www.nextmontenegro.com), but since that was written as part of the DW template, I just left it. Weird. Anyway, the code flows down the page now.
Thanks for the quick replies and helpful hints:-)

Similar Messages

  • HTML code displayed

    Right its like this....
    I can now get my data from my database (no small victory in itself. Thanx to all those that gave assistance). One of the fields contains HTML code
    <p>blah blah etcWhen the jsp displays the output it is actually showing the HTML code, not the rendered output... viewing source shows that it has been written to the response as
    & lt;p & gt;blah blah blah.....(needed the spaces to show it correctly!)
    Any clues as to why and what I can do to about it?
    Thanks
    Elija

    do a replaceAll.., if you are using Java 1.4
    String str = orig.replaceAll("& lt;", "<").replaceAll("& gt;", ">");
    You might need escapes for some of those chars for the regex parser. Or this older code I had laying around:
          * Decodes any entities in the specified string with their character
          * equivalents. 
          * @param  str  the encoded string
          * @return  the decoded string
         private String decodeEntities(String str) {
              if(str == null) {
                   return null;
              StringBuffer sb = new StringBuffer(str);
              String[] ents = {     // list of entities to replace
                   "&",      "<",      ">",      "&apos;", """
              String[] chars = {     // list of characters to replace with
                   "&",      "<",      ">",      "\'",      "\""
              int len = Math.min(chars.length, ents.length);
              int k = 0;
              for(int i = 0; i < len; i++) {
                   for(int j = 0; j < sb.length(); j++) {
                        k = j + ents.length();
                        if(k >= sb.length()) {
                             break;
                        if(sb.substring(j, k).equals(ents[i])) {
                             sb.replace(j, k, chars[i]);
              return sb.toString();

  • HTML code displayed in browser

    when viewing the jsp pages from remote network, we are having a problem. The page ends abruptly and the html tags like <td width="30" > are displayed on the browser. the content of the page also ends at the point of html code display. the server console shows no error. Not sure if it is some network or server issue. Please help.

    posting & quot(no space between & and quot) its getting replaced by " so everywhere there is a space between & and <quot/lt/gt/amp) strip that while using.
    HTML reserved characters are & quot; & amp; & lt; & gt; for ", &, <, > respectively.
    while writing such characters, do not directly put < , > &, " use the chars shown above.
    for help here is the utility method that will put the desired chars:
         public static String escapeHTML(String value)
            if (value == null) return "";
            StringBuffer strval = new StringBuffer();
            for (int i = 0; i < value.length(); i++)
                  char ch = value.charAt(i);
                  switch (ch)
                       case '"': strval.append("& quot;"); break;
                       case '&': strval.append("& amp;"); break;
                       case '<': strval.append("& lt;"); break;
                       case '>': strval.append("& gt;"); break;
                       default:
                            if (ch > 126)
                                 strval.append("&#" + String.valueOf(ch) + ";");
                            else
                                 strval.append(ch);
                            break;
             return strval.toString();
         }

  • Two deductions for invoice with same reason code posted as one line item

    Hi
    We have a scenario wherein we are taking two or more deductions on the same invoice and are using the same reason code which have a setting of charge off.
    SAP system displays the FI posting with same reason codes with charge off setting as one line item.
    However we want the FI Posting to display separate line items per deduction and not combine amounts of deductions based on same reason code with charge off setting.
    Any comments are appreciated.
    Edited by: Kirti Bhardwaj on Jul 24, 2011 9:46 AM

    Hi,
    you can use different reason codes in distribute differences screen once you have fist selected one reason code for one invoice.

  • Apex 2.2 - Correct Broken html code displaying ( " /html" )  due to data

    Yes. We are running version 2.2. Apex 4.0 isn't an option right now.
    French characters are causing the broken code "</html" to display at the bottom of the page
    when the data is pulled from the database.
    I have tested the page with non-french characters and the broken code does not appear.
    The region is a sql query updateable report region. The query is a straight forward query, just
    pulling whatever is sitting in the columns.
    The primary language for this page and all pages in the application is English.
    How does one get around this display error?
    Thank You

    This is frequently caused by failing to meet APEX installation and configuration requirements. Ensure the DAD character set is AL32UTF8 and the correct version of the PL/SQL Web Toolkit is used.
    The DAD may be at the location indicated in the documentation link below, or it may be somewhere else depending on the local configuration. The PL/SQL Web Toolkit can be checked using the query <tt>select owa_util.get_version from dual</tt> in the SQL Workshop.
    http://download.oracle.com/docs/cd/B31036_01/doc/install.22/b28552/post_inst.htm#BHADHBBG
    http://download.oracle.com/docs/cd/B31036_01/doc/install.22/b28552/post_inst.htm#BHAJFIGJ

  • HTML Code Display - Disappearing???

    (RH8, CHMs)
    Hello,
    Running into an issue, not sure how to fix this.
    I am building a link to an external .htm file that will be included with our help CHMs. It's staying external because this allows us to update it at any time without having to update any CHM itself by re-importing and building. The html files are in the same folder as the help CHMs.
    Normal hyperlinking doesn't seem to work - the CHM can't apparently see the content of topic, and may be running into an issue because it appears to be trying to open within the help screen rather than through a browser like IE or Firefox.
    So I did some googling and found the following html code which works like a charm:
    http://www.cybertext.com.au/tips_HTML_chm_external.htm
    <OBJECT id=hhctrl
       type="application/x-oleobject"
       classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
       codebase="hhctrl.ocx#Version=4,73,8412,0"
       width=100
       height=100>
      <PARAM name="Command" value="ShortCut">
      <PARAM name="Font" value="Arial, 10pt">
      <PARAM name="Text" value="Text:Doc name">
      <PARAM name="Item1" value=",document.ext,">
    </OBJECT>
    The issue I'm running into is that this code doesn't display in RoboHelp itself. That is, if I view the topic in Design mode, the hyperlink text ("Doc name" in the example above) never shows. And if I go between design and html, or close and reopen, the code disappears in the HTML view as well. The code is still there - the links show up as designed (and work) whenever I compile the project. I just can't find a way of getting them to display in RH beyond staying in the HTML view for that topic after inserting the code.
    Any ideas why this is happening, and what can be done?

    You could try an iFrame. Much easier in RoboHelp 9 I believe but also available in RoboHelp 8.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • HTML-Code displayed instead of value

    To color cells of a report column I entered some code code in "HTML Expression" of a column.
    e.g. the cell INT_DATE should be green if the value of INT_FA is "A", and if it is not "A",
    then - depending on the value of INT_DATE and TAGDAT - the
    cell value INT_DATE should be red or black. This works fine:
    <script language="javascript">
    if ( '#INT_FA#' == 'A' )
    document.writeln('<font color=#33CC33>#INT_DATE#</font>')
    else
    if ( '#INT_DATE#' > '#TAGDAT#' )
    { document.writeln('<font color=#FF0000>#INT_DATE#</font>') }
    else
    { document.writeln('<font color=#000000>#INT_DATE#</font>') }
    </script>
    But for another column INT_FA the similar code produces code display in the tabular cell !!!
    The code is:
    <script language="javascript">
    if ( '#INT_FA#' == 'A' )
    document.writeln('<font color=#33CC33>#INT_FA#</font>')
    else
    if ( '#INT_DATE#' > '#TAGDAT#' )
    { document.writeln('<font color=#FF0000>#INT_FA#</font>') }
    else
    { document.writeln('<font color=#000000>#INT_FA#</font>') }
    </script>
    Any idea why ?
    Heinz

    To color cells of a report column I entered some code code in "HTML Expression" of a column.
    e.g. the cell INT_DATE should be green if the value of INT_FA is "A", and if it is not "A",
    then - depending on the value of INT_DATE and TAGDAT - the
    cell value INT_DATE should be red or black. This works fine (everywhere you see "fon" replace it by "font" !!!)
    <script language="javascript">
    if ( '#INT_FA#' == 'A' )
    document.writeln('<fon color=#33CC33>#INT_DATE#</fon>')
    else
    if ( '#INT_DATE#' > '#TAGDAT#' )
    { document.writeln('<fon color=#FF0000>#INT_DATE#</fon>') }
    else
    { document.writeln('<fon color=#000000>#INT_DATE#</fon>') }
    </script>
    But for another column INT_FA the similar code produces code display in the tabular cell !!!
    The code is:
    <script language="javascript">
    if ( '#INT_FA#' == 'A' )
    document.writeln('<fon color=#33CC33>#INT_FA#</fon>')
    else
    if ( '#INT_DATE#' > '#TAGDAT#' )
    { document.writeln('<fon color=#FF0000>#INT_FA#</fon>') }
    else
    { document.writeln('<fon color=#000000>#INT_FA#</fon>') }
    </script>
    Any idea why ?
    Heinz

  • Hub transport raw HTML code displays when iOS client used to send message

    Has anyone else encountered (and hopefully fixed) this problem? I use HTML coding to format the signatures for my staff at the hub transport rule level. Here's an example:
    <br><p style='font-size:12pt; font-family:"Arial","sans-serif"'><b>%%CustomAttribute1%%</b><br>
    %%Title%%<br>
    Tel:&nbsp;&nbsp;&nbsp;%%PhoneNumber%%<br>
    Fax:&nbsp;&nbsp;%%FaxNumber%%<br>
    %%Email%%<br><br>
    <img border=0 width="240" height="62" src="http://wiglefamily.net/CABVI/CABVILogo.jpg" alt="CABVI Logo"><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="www.cincyblind.org">www.cincyblind.org</a></p>
    <p style='font-size:8pt;font-family:"Arial","sans-serif"'>Disclaimer:  The information contained in this electronic mail message may be confidential and protected information intended only for the use of the individual or entity
    named above.  As the recipient of this information you may be prohibited by State and Federal law from disclosing this information to any other party without specific written authorization from the individual to whom it pertains. If you have received
    this communication in error, please notify us immediately and destroy the message and its attachments. </p>
    It looks great when I sent from Outlook or even Android mail clients. However, when sent from iOS mail clients I get the following in the signature:
    <html>
    <body>
    Michael Wigle IT Manager Tel: 513-487-4243 Fax: 513-221-2995
    [email protected] [CABVI Logo] www.cincyblind.org Disclaimer: The information contained in this electronic mail message may be confidential and protected information intended only for the  use of the
    individual or entity named above. As the recipient of this information you may be prohibited by State and Federal law from disclosing this information to any other party without specific written authorization from the individual to whom it pertains.
     If you have received this communication in error, please notify us immediately and destroy the message and its attachments.
    </body>
    </html>
    As you can see, the raw HTML code shows but the AD variables populate correctly. Any ideas on a solution for this problem?

    See this for the pipeline tracing:
    http://technet.microsoft.com/en-us/library/bb125198(v=exchg.80).aspx
    There's a link in that article that takes you to:
    http://technet.microsoft.com/en-us/library/bb125018(v=exchg.80).aspx
    FYI, I think you're still a bit confused. Once again you said *from* when you meant *to*! :-)
    --- Rich Matheisen MCSE&I, Exchange MVP

  • FBL5N: missing one line item while viewing the report in spool

    Hi Experts,
    I 've got a problem while viewing FBL5N report in spool. The report is missing one line item, but when I
    execute it in foreground, the report was ok.
    Can somebody explain?
    TQ.

    Hello,
    It seems you should implement notes 1100728 and  1166251 !
    Best Regards,
    Glayds xing

  • Content viewer displays "---" after folio name in browse view

    (also posted to pre-release forum)
    I recall in the pre-release bundler there was a place to indicate issue number and this would appear after the folio name in browse view. Is there a way to do this with the new tools in the Adobe Content Viewer app? Maybe in the sidecar.xml document? Right now it leaves three dashes after the name.

    You need to use the Folio Producer Organizer (http://digitalpublishing.acrobat.com) to specify the Folio Number for a folio. You can't use sidecar.xml or the Folio Builder panel to specify the folio number.

  • Publishing trouble, in html code no sound + one key doesnt work. Pure .flw everything works ??

    Hello, relatively new to AS3 and flash, this is the first time i am  publishing anything. We are trying to upload our simple flashgame to our  webserver, the game works perfectly fine locally save for one thing. We  get an error regarding TLF which says it wont stream or something. So  when it gets online, no sounds play and spacebar doesn't work, left and  right arrow does work. We have three TLF text fields that are used to  update score, lives and show you final score. If i turn these into  classical text they stop working. If we put it up as a just direct linkage to the .swf file everything works fine. It´s when we embedd it in html(our own or flash default one) that no sounds play and spacebar stops working but left and right arrow continues to work.
    Things we have tried: Changing default linkage from RLS to Merged into  code, changing the text boxes to classical text(they then stop working),  made sure the paths are correct(all files are in the same directory  including the .swz file)
    Also might add publishing it locally in my own browser everything works,  as does ofcourse playing it in flash itself. Changing from RLS to  merged into code stops the error from coming, but doesn´t fix the  problem on the server.
    What really gets me is that spacebar stops working for some reason.
    ANy help is greatly appreciated!

    Uh oh.  We just submitted a book that has custom widgets that play mp3 files using the <audio> tag.  From javascript, I call the play() method of the audio tag.  (I have one <audio> tag and I change the source to different sound files.)  As Willie posted in the original description, our testing of the generated .ibooks file works great on all ipad flavors.  We are not at the point yet where it exists on the ibookstore so that we can test the download. 
    Won't the Apple review of the book test this?  It'd be so easy to write a tool that scans for mp3 files if those are not allowed.  But that doesn't explain why it works in testing but not from the ibookstore.
    My .wdgt folders were created by hand.  I hand write the html and javascript and just put all the right files in the .wdgt folder.  Everything appears to be working great, thus our submission the other day.  We're waiting on the 10 day feedback period.
    So, catonpub, your book plays mp3 and works fine when testing the .ibooks file but doesn't work when downloaded from itunes?

  • Index.html not displaying when previewing in IE browser

    Win XP
    DW CS4  TRIAL VERSION
    I created a template including header, footer, left side bar.
    I typed in the main content and it looks fine.  When I preview in IE7 the text in the header, footer and left side bar display correctly.  However the text in the main content looks like the right margin has been moved to the left.  I changed justification and cut and pasted the text back and that didn't work either.  Please see attached page.
    Thank you!
    Bruce

    I figured it out.  Is was a result of a jpeg file I had inserted into the header. I noticed the image was overlaying the editable region and first reduced the size, but that didn't work.  When I deleted it totall from the header the text in the main content area displayed correctly.  Hum?

  • How to print html code block

    hi all
    i have a problem about printing my html code block in a loop ...for example;
    <%
    int i;
    for(i=1;i<10;i++)
         out.println("<h1>Hi ALL</h1><h2>Hi All</h2>");
    %>it works well because the html code is just one line.
    but if i want to print very long html code how am i going to print that???
    for example i want to print that html code;what am i going to do now
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="800" height="60" valign="top"><div align="center">
                <span class="style1">Ders Ad&#305;</span>:          
                <%
              dersismi.next();
                %>
              <span class="stilim"><%out.println(dersismi.getString("DERS_ADI"));%></span>
              </div></td>
          </tr>
        </table>thanks for your help

    If you are printing out large blocks of HTML you shouldn't be using any java command. You should just write the HTML like you have in your example.
    The whole point of JSP was that you didn't have to put out.println() statements into a servlet!.
    If you just want to out.println a value into the HTML, consider using the <%= %> expression tag. ie rather than <%out.println(dersismi.getString("DERS_ADI"));%>
    just have
    <%= dersismi.getString("DERS_ADI") %>
    If you want to set up a loop, you can intersperse java and html code, but thats ugly. I would recommend using JSTL custom tags for looping.
    Good luck,
    evnafets

  • Preview in browser change html code

    Hi!
    Often when I sketch web sites in Fireworks I preview the page
    as an image in my browsers, just to get a feeling of the page in
    its real environement, so to speak. Often my web sites are aligned
    to the center but Fireworks just put the image to the left and
    don´t remove the standard body margins.
    Is there a way for me to change the html code used in the
    preview in browser command?

    why not make a standard page (in dw) with zero margins and
    padding, and
    single div centred with one image and then place the native
    fireworks
    png in there, save and preview that page from DW and then
    when you work
    on your fw image just save it and press refresh in your
    browser window.
    when you do a new project simply swap the new fw png for the
    old fw png ;)
    JoeyD1978 wrote:
    > My work flow is probably a bit different, so this might
    be way out in left
    > field for you. But I create a new document and make it
    very large (2400x3000+).
    > I then center what will be my layout in that document
    and design from there.
    >
    > When I preview the layout, I just center the layout in
    my browser with the
    > horizontal scroll bar. This is the only way I've ever
    figured out how to get
    > around this same problem.
    >

  • Use html code in web page composer 7.3

    Hi all,
    I have a question about the standard editors of web page composer in 7.3.
    I want to create my own HTML code for the design of the portal page..
    Is it possible to use the code through one of the standard editors?
    At the moment I have created some html pages and store them in the KM content of the portal. Then I make this pages available with the KM Document iViews to use them in the Web Page Composer. The problem now is, that the links to other portal pages doesn't work..
    So is there maybe a possibility to use the html code directly in one of the editors? Or do you know, how you have to define the links to navigate to other portal pages? I tried a href="TBN://..." like the links you get with the Link List Editor, but it doesn't work..
    Thanks in advance for your help!
    Regards,
    Lydia

    Hi,
    now we have the tinyMCE editor, where you can insert and edit html-code. It works fine now for the layout,
    but there are still a few problems with the links..
    In the edit mode there are displayed all km images out of the km. But the images aren't displayed under the portal role, when i publish the page. And all the links like one to a wiki or the TBN links doesn't work, too.
    Can anybody help me further?
    Thanks in advance,
    Lydia

Maybe you are looking for