Blank spaces in code view

Hello,
Whenever I copy and paste text from another website -- sometimes from my own website after it goes live -- onto Dreamweaver, the text looks just fine in Design view. Fonts and paragraphs are preserved, as they're supposed to according to my preferences.
However, when I look at the code view, there are always several -- sometimes a whole lot of -- blank spaces separating words; blank spaces that were not in the original text (even in code view) and that can't be detected in Dreamweaver's design view.
It looks ok online just like it looks ok in Dreamweaver's design view, but I'm just a little concerned that those blank spaces may confuse search engine crawlers.
For instance. In design view and online, one sees:
"Great Holiday"
but in the code view/source page you'll see
"Great                    Holiday"
That's what the crawlers and spiders will see as well. And they may think that "Great Holiday" and "Great                    Holiday" are two different sets of keywords when they should be the same.
How can I ensure that only *one* blank space is allowed in Dreamweaver's code view, whenever I copy and paste text from webpages? Is there a way that I can preserve the texts' format and fonts while ensuring *one* blank space in code view?
Any suggestions would be much appreciated.

No, actually this is what happens:
If one of us copies text from our blog online (www.altfg.com/blog/) we see the following in Dreamweaver's design view:
Right behind Clash of the Titans, DreamWorks Animation’s How to Train Your Dragon, featuring the voices of Jay Baruchel, Gerard Butler, and
America Ferrera, earned $3.8 million (+9.2%) domestically on Thursday,
but in code view there are blank spaces between words. Blank spaces that shouldn't be there:
<p>Right behind <em><strong><a href=
"http://www.altfg.com/blog/movies-431/clash-of-the-titans-box-office-predictions/"
>Clash       of the Titans</a></strong></em>, DreamWorks Animation’s <em>How to   Train Your Dragon</em>, featuring     the voices of <strong>Jay Baruchel</strong>,<strong> <a href=
"http://www.altfg.com/blog/photos/bradley-cooper-gerard-butler-andrew-r-jones-810/"
>Gerard       Butler</a></strong>, and <strong>America Ferrera</strong>, earned     $3.8 million (+9.2%) domestically on Thursday, </p>
Notice the blank spaces separating "featuring      the voices" or "Gerard       Butler." Those shouldn't be there. Maybe it makes no difference. On the browsers, it all looks fine. But is there a way to ensure that Dreamweaver doesn't allow more than one blank space between words in code view?
Also, *no one* has responded to my query about automatic hyperlinks for images. Any ideas?
That has been such a drag.
http://forums.adobe.com/thread/613801?tstart=30
Thank you.

Similar Messages

  • DW CS6: Extra empty blank line in code view causing trouble!

    Hi all,
    I searched for hours for a solution to the following problem, without any success.
    When coding in Dreamweaver CS6 (Version 12.0, Windows 8.1), an extra non-editable blank line is automatically added at the bottom of the document (in code-view). This is a nice feature, since it clearly separates the end of the document from the rest of the DW user interface. BUT:
    WHEN you have "Word Wrap" disabled (i.e. horizontal scroll bars appear if one or more lines are longer than the current view),
    AND no line is actually longer than the view (i.e. NO horizontal scroll bars),
    AND you click somewhere into the document while the vertical scroll bar is at the very bottom,
    THEN the code view jumps one line upwards causing a selection of 2 lines.
    This might not seem to be a big issue at first glance, but surprisingly often all of the mentioned conditions are met.
    Is there any possibilty to somehow get rid of this problem?
    Note: The problem does not occur when any of the above conditions is false.
    Cheers!
    CamelCase

    This is strange...
    Yes, I just updated DW to 12.03 a minute before I posted the question. ;-)
    Are you sure you cannot reproduce it? Is there a blank line at the bottom of your editor as well?
    Here are the conditions again:
    Word Wrap is disabled.
    No line too long for vertical scrollbar to appear.
    Scroll fully down in the code view.
    Click somewhere into the document.
    Effect: The view jumps exactly one line upwards (such that the mentioned blank line just disappears), and instead of a blinking cursor, two lines are selected.
    Here is a screenshot before/after the click:
    I appreciate any help. Really, thank you!!

  • Getting rid of Multiple Spaces in Code View (after Copying/Pasting)

    Hello,
    I'm trying to find a way to get rid of multiple spaces between words in Dreamweaver CS3's code view.
    Oftentimes, when I copy/paste text from elsewhere (e-mail, website, etc), the Dreamweaver code shows up with multiple spaces. Normally, that wouldn't be problem -- except that my blog's auto-tag plug-in doesn't detect selected phrases when there are multiple spaces between words, e.g., it'll detect "Swiss Alps" in a post but not "Swiss  Alps" (notice the extra space between words in the second phrase).
    If at all possible, I'd like to be able to keep Dreamweaver's text formatting option when I copy and paste, as that means I don't need to manually put words in bold/italics.So, is there a way to keep that option while getting rid of all the extra spacing between words?
    By the way, I'm familiar with Wordpress CSS, but not with Dreamweaver CSS. Not sure if there's any difference.
    Any assistance would be much appreciated.

    I make it a point to never paste formatted text into HTML pages.  Formatted text from MS Office usually contains a variety of junk you don't want and I don't have that much faith in MS Word code removal tools.
    Bold and Italics from Word or Outlook should be changed to current HTML tags of <strong> for bold and <em> or emphasis for italics anyway.  Also see Logical Tags here:
    http://www.htmlcodetutorial.com/logical.html
    Find and replace is good for removing whitespace if you know how to do it correctly. Make backup copies just in case things go wrong.  http://www.tjkdesign.com/articles/whitespace.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Thousands of blank lines in code view? Where did they come from?

    I have an older DW site, that for some reason when I open certain pages in code view show literally thousands of blank lines.  So line 1, code, line 2-15 are blank, then what used to be line 2 of the code, is now line 16. All the way down the line.  This one page literally has THOUSANDS of blank lines in it:
    Aurora Prom Corsages, Boutonnieres, Flowers, School Dance Flowers-Yorkville, Osego Illinois
    page renders, edits and looks fine in DW, browsers, etc. 
    My client edits it with Contribute. I use DW.
    There are certain pages he opens regularly, never saw the lines, other pages, just opens once a year, lines all over again.
    We can't find any rhyme or reason to it.
    Has anyone ever seen this?

    Try opening one of those pages in DW and then go to Commands > Apply Source Formatting and see if that cleans them out.
    I've heard of a bug where adding html comments can cause added blank lines in certain versions, I've never seen it myself though.

  • How to use blank space replace NULL on discoverer viewer

    Hi,
    There is a report that has a varchar field should show text values, and if NULL, I need it show blank space, and does in disco desktop, but on viewer, the same worksheet shows NULL.
    Even I changed in the Tools - Options - Format menu(desktop), it still show NULL on viewer.
    why?
    please help! thanks!
    sammy

    Hi Sammy,
    Unfortunately ‘some’ of the settings set in Desktop do not carry over to Viewer. These options need to be defined for Viewer itself.
    A temporary way to set the Viewer settings is to click on ‘Options’ when logged in Viewer itself. You’ll have to open a responsibility or report before this option becomes available to select. Within here you’ll be able to change the way NULL values are seen. However this method only makes the change for the User you logged in with.
    To make the change for all users, it’s best to edit the PREF.TXT file on the Discoverer Server. Please view the documentation below for more information on how to configure Viewer. For windows platform click here : http://download-uk.oracle.com/docs/html/A90287_01/toc.htm,
    For Unix platform click here : http://download-uk.oracle.com/docs/html/A90288_01/toc.htm. Once you’ve run the applypreference script, these settings will be forced down to all users of Discoverer.
    Hopefully this will help ;-)
    Lance

  • 'Save as' file shows blank code view until reopened

    Odd behaviour that I have noticed just recently (say last week - so could be after the XMP updates to CS5). I have a large number of PHP pages within a development site, they reference headers and footers etc... If I carry out a 'Save as' procedure, the orginal file stays open, and a new tab opens to its right with the filename entered during the 'Save as' operation. But instead of showinng the code in the Code View, it appears blank. Selecting Split or Design view also presents a blank pane. Note that Live Code and Live View were not activated during the above. Interestingly, if I do switch Live View on, though the Code View remains blank, the Design View renders as one would expect. If I switch Live Code, both Code View and Design View show code and rendered designs. In both the latter cases, if I switch off Live Code/View, when it goes back to ordinary Code View - once again nothing is visible in its pane.  However, if I close 'saved as' file's tab, and then navigate to and open it, the Code View is displaying the code. So the code was there, when initially created in the 'Save as' operation, but was being shown/displayed in the Code View pane.
    I have DW CS5 build 4916, and don't recall this being a problem when I initially updated to CS5. My OS is Mac 10.6.4. The pages concerned have not been newly created and form part of a project that has been in progress from early last year and so started in the CS4 of Dreamweaver.

    Possible good news. I've been away and hadn't opened DW since also having had a problem with Finder and external drives on my return. When I opened it today, and needed to do a 'Save As' , it did it with no problem of rendering. Though there have been no DW updates, there was updates to PS and ID. So I'll tentatively say the problem has gone away - hopefully for good.
    Just editing this post. I happened to turn  Live View on etc.. for the first time in a couple of weeks due to the  above. I realsied this morning I hadn't turned it on. Now it is just as  before when I try to 'Save As' - blank, an then have to close and reopen  for it to render (even though the Live View/Live Code is now stiched  off).
    No I don't know how to turn this thread back into an 'Unanswered' question.
    Message was edited by: tgiadd

  • Space preserved when pressing enter in the code view

    Sorry guys. This may be a old problem in Dreamweaver cs5.5, but i can't find any solutions of solving this.
    When i press enter in the code view,same as the following:
    <div>
             <div></div> ------ (1)
             <div></div>  ------ (2)
    </div>
    Dreamweaver cs5.5 help me to indent.
    When i preview the page in my browser, i find that there is space between two div (1) and (2). (i set the display of block as inline-block in css) (but there is the same problem when i change div to span too)
    If i code as the following:
    <div>
             <div></div><div></div>
    </div>
    The space vanish.
    The problem is how can i code or set the dreamweaver such that there is no space preserved when i code as the top one?
    Thank you.

    Hi yftsol,
    I've just been working on the same problem.  My code formatting vanished upon uploading my site to my server.  What I think is happening is that Dreamweaver CS5.5 is getting confused about how to interpret the use of the enter key.
    The fix for my site was to go up to the opening <html> tag and remove all whitespace between it and the doctype declaration.  Then, I moved the opening <html> tag back down to my second line of the document and re-uploaded the file.  Then, when I viewed the source code from the live site, everything was formatted properly.
    I hope this helps!
    Rosemary

  • I'm now using iPhoto '11 (9.3.2), and none of the photos in my library will enlarge.  I can view them all as thumbprints, but when I click to enlarge just a black, blank space shows up.  Occasionally, one will enlarge for a second, then disappear.  Help!

    I'm now using iPhoto '11 (9.3.2), and none of the photos in my library will enlarge.  I can view them all as thumbprints, but when I click to enlarge just a black, blank space shows up.  Occasionally, one will enlarge for a second, then disappear.  Help!

    Just to clarify, I am not getting an "!" mark in a triangle, as I read others have experienced.  The screen is just blank except the grey flag in lefthand corner to flag the photo.

  • After applying a template to a page design view is blank - I can only edit in code view.

    When I apply a template to a page everything is fine. I can see the page elements in design view and code view. I can edit the page and upload it and all is fine. However, when I save the page with a new name or close the page and then reopen the design view is empty, the code view is normal. I would like to be able to see the page in the design view and cannot. I don't know what to do. I hope someone has an idea for me. Thank you.
    I am using DW CS5 and pages are ASP.

    When you say "template" are you talking about the .dwt Template file from DW?
    If so, you may be using it incorrectly. Once you create the .dwt, all of your new pages need to be created via File > New > Create Page From Template and then saved to your site. If you are using the .dwt file and doing "Save As" to create more pages, you're going to run into all sorts of problems.
    Do you have a link we could look at?

  • Viewing/Identifying blank spaces in SQL*plus

    How can i identify blank spaces in Sql*plus? How will i know if the result of the following query has the blank spaces on the right trimmed?
    SQL> select rtrim('sxxx  ') from dual;
    RTRI
    sxxxMessage was edited by:
    J.Kiechle

    Why? This seems a pretty strange requirement for me.
    Are you sure that you have a problem with blank padded characters?
    select 1, '|'||rtrim('sxxx  ')||'|' from dual
    UNION
    select 2, '|'||'sxxx  '||'|' from dual;
    Row#     1     '|'||RTRIM('SXXX')||'|'
    1     1     |sxxx|
    2     2     |sxxx  |

  • Blank Space problem in Adobe Form

    Hello Gurus,
    In my Adobe form, One field has to be displayed based on a condition. So, for that field, in Context tab, condition is specified and its working also i.e. It condition is true then data is not displayed in the layout but I find the blank space for it. I dont want that blank space to be displayed.
    Example:
    In layout, address is in format as shown below.
    Name
    Street
    City
    Region
    Postal code
    Country
    Here, I have a condition that, Region field should not be displayed only for Material eq '123' i.e. same address has to be printed as shown below.
    Name
    Street
    City
    Postal code
    Country
    But, If I give condition then address is shown as below.
    Name
    Street
    City
    >Here, am getting empty space & I dont need this blank space to there in the layout.
    Postal code
    Country
    So, Can anyone please help me for this.
    Thanks in Advance.
    Regards,
    Usha

    Hi Usha,
    1. Remove the Condition from you Context tab.
    2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
        the adobe form.
    3. Make the subform (under which the field is added in the hierarchy view) as flowed.
    4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
    for e.g
    if (xfa.form.FORM.SUB_FORM.matnr == "123") {
        xfa.form.FORM.SUB_FORM.Region = "hidden";
    NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
    Hope this proves to be useful.
    Thanks,
    Swar.

  • Extra blank space problem in af:selectOneChoice

    Hi All,
    I m using <af:selectOneChoice> to display few items in combo box. Now the problem is when the page gets load 1st time, its show an extra blank space in item list, but after selecting any item from the list page gets refreshed and reload again, now it does not have any extra blank space in the list.
    How do I remove this blank space from the combo box ???

    Hi Usha,
    1. Remove the Condition from you Context tab.
    2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
        the adobe form.
    3. Make the subform (under which the field is added in the hierarchy view) as flowed.
    4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
    for e.g
    if (xfa.form.FORM.SUB_FORM.matnr == "123") {
        xfa.form.FORM.SUB_FORM.Region = "hidden";
    NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
    Hope this proves to be useful.
    Thanks,
    Swar.

  • Embedding a pdf in website leaves blank space at top

    I am wanting to embed a pdf into my website using dreamweaver, and applying a template, but it is leaving a blank space at the top.  You can see this on www.maulroad.com/newsletter.pdf.  Here is the embed code used.
    <embed><object type="application/pdf" data="http://www.maulroad.com/Newsletter.pdf" " width="100%" height="90%" < >/object ></embed>
    Any thoughts on how I can get this without the blank spot?

    I agree with Hans.  Embedding PDF never works well because PDF is a print document and HTML is a web document.  In order to view PDFs, your end users must have an appropriate plug-in for their browser and a viewer  like Acrobat Reader installed on their system.  That's a lot of ifs...
    This is how Adobe does it (images and links to PDF files)
    http://www.adobe.com/manufacturing/3dpdfsamples/3dsolutions/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Blank spaces in alv report

    hi experts,
    i have a requirement that i need to develop a report which is same as t-code cs11,
    but in cs11 we are getting the report for a single material and its bom components  .
    in my require ment  i need to develop a report for range of materials, i almost did that but the problem i am facing
    is how to obtain a blank space in alv report, after completion of single material  and its components r displayed.
    can any body pls suggest me.
    thanks&regards
    maheshlap

    hi srihari,
    i tried that but the blank lines r appending at the end of internal table.
    the following is the table ( t_main ) i am passing to the function module
    LOOP AT T_STKO INTO W_STKO.
        W_MAIN-STLNR = W_STKO-STLNR.
        W_MAIN-STLAL = W_STKO-STLAL.
        W_MAIN-STLST = W_STKO-STLST.
        W_MAIN-BMENG = W_STKO-BMENG.
        W_MAIN-BMEIN = W_STKO-BMEIN.
        READ TABLE T_MAST INTO W_MAST WITH KEY STLNR = W_STKO-STLNR .
        W_MAIN-MATNR = W_MAST-MATNR.
        W_MAIN-WERKS = W_MAST-WERKS.
        W_MAIN-STLAN = W_MAST-STLAN.
        READ TABLE T_MAKT INTO W_MAKT WITH KEY MATNR = W_MAST-MATNR .
        W_MAIN-MAKTX = W_MAKT-MAKTX.
        APPEND W_MAIN TO T_MAIN.
        CLEAR W_MAIN.
      ENDLOOP.
    can u pls send me some sampe code.
    thanks.

  • Lots of blank space when printing array with only last element printed

    I have a slight problem I have been trying to figure it out for days but can't see where my problem is, its probably staring me in the face but just can't seem to see it.
    I am trying to print out my 2 dimensional array outdie my try block. Inside the trying block I have two for loops in for the arrays. Within the second for loop I have a while to put token from Stringtokeniser into my 2 arrays. When I print my arrays in this while bit it prints fine however when I print outside the try block it only print the last element and lots of blank space before the element.
    Below is the code, hope you guys can see the problem. Thank you in advance
       import java.io.*;
       import java.net.*;
       import java.lang.*;
       import java.util.*;
       import javax.swing.*;
       public class javaflights4
          public static final String MESSAGE_SEPERATOR  = "#";
          public static final String MESSAGE_SEPERATOR1  = "*";
          public static void main(String[] args) throws IOException
             String data = null;
             File file;
             BufferedReader reader = null;
             file = new File("datafile.txt");
             String flights[] [];
                   //String flightdata[];
             flights = new String[21][7];
             int x = 0;
                   //flightdata = new String[7];
             int y = 0;
             try
                reader = new BufferedReader(new FileReader(file));   
                //data = reader.readLine();   
                while((data = reader.readLine())!= null)   
                   data.trim();
                   StringTokenizer tokenised = new StringTokenizer(data, MESSAGE_SEPERATOR1);
                   for(x = 0; x<=flights.length; x++)
                      for(y = 0; y<=flights.length; y++)
                         while(tokenised.hasMoreTokens())
                            //System.out.println(tokenised.nextToken());
                            flights [x] [y] = tokenised.nextToken();
                            //System.out.print("*"+ flights [x] [y]+"&");
                   System.out.println();
                catch(ArrayIndexOutOfBoundsException e1)
                   System.out.println("error at " + e1);
                catch(Exception e)
                finally
                   try
                      reader.close();
                      catch(Exception e)
             int i = 0;
             int j = 0;
             System.out.print(flights [j]);
    //System.out.println();

    A number of problems.
    First, I bet you see a lot of "error at" messages, don't you? You create a 21x7 array, then go through the first array up to 21, going through the second one all the way to 21 as well.
    your second for loop should go to flights[x].length, not flights.length. That will eliminate the need for ArrayIndexOutOfBounds checking, which should have been an indication that you were doing something wrong.
    Second, when you get to flights[0][0] (the very first iteration of the inner loop) you are taking every element from the StringTokenizer and setting flights[0][0] to each, thereby overwriting the previous one. There will be nothing in the StringTokenizer left for any of the other (21x7)-1=146 array elements. At the end of all the loops, the very first element in the array (flights[0][0]) should contain the last token in the file.
    At the end, you only print the first element (i=0, j=0, println(flight[ i][j])) which explains why you see the last element from the file.
    I'm assuming you have a file with 21 lines, each of which has 7 items on the line. Here is some pseudo-code to help you out:
    count the lines
    reset the file
    create a 2d array with the first dimension set to the number of lines.
    int i = 0;
    while (read a line) {
      Tokenize the line;
      count the tokens;
      create an array whose size is the number of tokens;
      stuff the tokens into the array;
      set flights[i++] to this array;
    }

Maybe you are looking for