DW reformats code to double-space all lines

I have often had the experience that DW (currently CS3, but
this has happened in earlier versions as well) double-spaces all
the code in a document that was not previously double-spaced. That
is, opening a document that previously displayed normally with no
double-spaces (except where I had placed them) suddenly opens with
an extra blank line between every line, including a second blank
line between other double-spaces. Sample code below.
How can I reverse this effect? Is there any way to select all
the code and delete the extra blank lines at once? I find it very
hard to read the code and find what I'm looking for when it's all
double-spaced, but it's very tedious to remove the spaces line by
line.
Any ideas? Thank you!
sample snippet of suddenly double-spaced code:
<table width="95%" border="0" cellspacing="0"
cellpadding="2">
<tr>
<td width="49%" bgcolor="#CCAEAE"><img
src="images/header_title.gif" alt="Lab Acquisition Services"
width="324" height="100" /></td>
<td width="574" rowspan="2" bgcolor="#CCAEAE"><div
align="right"><img src="images/bostonskyline.jpg" alt="Boston
skyline" width="574" height="125"
/></div></td></tr>
<tr>
<td width="100%" nowrap="nowrap"
bgcolor="#CC0000"><div align="right"
class="tagline"><span class="style1">Top-Quality
Refurbished Lab Equipment    
</span></div></td>
</tr>
</table>

Oh cool! Thanks again; this has been a big help for a
niggling, annoying, couldn't-figure-it-out, problem! :-)
Have a great day.
quote:
Originally posted by:
Newsgroup User
> Now, I just need to figure out
> how to find out the hosting server's OS
http://netcraft.com -->link for
"what's that site running"
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Is there a keyboard short cut key to double space my lines like there is in windows?

    Can I double space my lines with a short cut? Like in windows when you hit control 2 and it automatically double spaces your lines, or do I have to manually do it at the top? Just curious.

    Hi Kelsey,
    Take a look at this blog on the subject. If you have some patience, you may succeed.
    http://www.betalogue.com/2010/03/30/customizing-pages/
    Jerry
    Note to Yvan - your work is quoted in the subject blog.

  • Word 2008 line spacing.. is single space and double space all messed up?

    Very basic here: in print layout view (only one I am using) the single spacing and double spacing seem so far apart. Single spacing is way too far apart. Is anyone else seeing this?

    That is the issue. I am hitting enter and getting a big space. I see a similar thing in Pages. All I know is tht in 2004 version, I start all my papers with 4 lines in top corner (name-enter/date-enter/assignment/class#-enter) I do these with single space just by default on Word.
    THen I go to format-paragraph-double space, and do my writing--double spaced.
    This is weird to me. I like word 2008, looks nice, notebook is cool. But I don't like having to re-learn that stuff. Is this how everybody does this? Everyone out of the box can not just type and choose single/double space? We have to edit some paragraph spacing? HUH?

  • Double spaces after checking out the code

    Hi Guru's,
    I am seeing double spaces in my code after checking out in cvc.
    Could anyone please help me how to remove the spaces.
    Thanks.

    Like this: Re: Error starting at line 1 in command ?
    Might be more appropriate to post in SQL Developer Forum.
    Regards
    Etbin

  • How do I double space a document using Pages There is NO Line Spacing control in the drop down menu in the format bar

    How do I double space a document in Pages. The instruction say to use the Line Spacing control in the format bar, but there is NO Line Spacing control in the drop down menu under Format. I'm writing a novel and I am having to manually double space after every line. It is **** when I am trying to edit my work.

    The computer is not too old (and neither are you ).   It may be better if you could upgrade it from 10.5.8 to 10.6 ... but that would not solve this problem.
    As both Paul and I have advised ... get yourself on Pages > go to the View menu and halfway down is the option 'Show Inspector'.   You'll end up with a panel like Paul showed you in his post of 08:42.   Let's see what you can do from there.

  • How I activate, when in code view current code line, to be highlighted (all line) eg light-blue ?

    How I activate, when in code view current code line, to be
    highlighted (all line) eg light-blue ?

    Actually, in Windows (XP) the highlight color (in DW8) is a
    byproduct of the
    color scheme you set for your desktop.
    Walt
    "Michael" <[email protected]> wrote in message
    news:gn7fpk$hbp$[email protected]..
    > In code view, click the line number in the left margin
    corresponding to
    > the line of code you wish to highlight. Left click that
    number and the
    > whole line will be highlighted in blue.
    >
    > Michael
    >

  • How to change double spaces to single space

    For some reason that I don't know about, the majority of the
    time that I download a PHP or HTML document from the web server to
    my local PC the document gets double spaces injected into each line
    of code. In HomeSite there is a simple command in the menu to
    change double spacing to single spacing. Why does Dreamweaver not
    have this, or if it does, then where is it? I cannot spend all of
    my time mannually removing each double spaced line. I tried the
    search and replace for this, but then I loose my tab formatting and
    it makes the code hard to read. Can anybody help or point me to an
    extension that works for this or sdomething? Or, do I just need to
    reload HomeSite and work in it instead of Dreamweaver?

    "carl@csi" <[email protected]> wrote in
    message
    news:fgn8sd$bn4$[email protected]..
    > For some reason that I don't know about, the majority of
    the time that I
    > download a PHP or HTML document from the web server to
    my local PC the
    > document
    > gets double spaces injected into each line of code. In
    HomeSite there is a
    > simple command in the menu to change double spacing to
    single spacing.
    > Why
    > does Dreamweaver not have this, or if it does, then
    where is it? I cannot
    > spend
    > all of my time mannually removing each double spaced
    line. I tried the
    > search
    > and replace for this, but then I loose my tab formatting
    and it makes the
    > code
    > hard to read. Can anybody help or point me to an
    extension that works for
    > this
    > or sdomething? Or, do I just need to reload HomeSite and
    work in it
    > instead of
    > Dreamweaver?
    Open the find/replace dialog, and check "Use regular
    expressions".
    then type the following in the search box
    \n\s*\n
    and type Ctrl-Enter in the replace box
    this should replace double line-breaks (with or without
    whitespace between
    them) with a single one.
    Joris van Lier

  • Double space report

    Hi All,
    How to find double space and generate report in text file with line number.

    save the previous record in a data variable and compare with present loop record.
    Like.
    LOOP AT itab.
      IF current_record = previous_record..
         skip 1.
      else.
         SKIP 2.
      ENDIF.
    previous_record = current_record.
    ENDLOOP.
    Regards,
    Wasim Ahmed

  • 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

  • Carriage Returns in HTML Code Creating Extra Spaces Between Elements

    I've looked online all over and can't find the solution to my issue. I've found several pages explaining a similar event, but no solution.
    When placing many divs next to each other, I would like to visually view the code as one div per line: (see image) To get this, I have to use hard returns in my code (this method makes editing a lot easier visually). But doing so adds extra spacing between the divs which turns a 3 column set of thumbnails to 2 colums. I can fix this if I adjust the physical margins between the divs, but this can't be the only fix.
    The other fix is if I place the code back to back to back (see image): This makes the div's behave and appear as they should, but now the code is a visual mess because it's all cluttered.
    What I want is to be able to use as many carriage returns in my code and for browsers to disregard these types of line breaks in the code. So essentially, how can I get away from these extra spaces when using hard returns in code?

    I think that both your pages have a missing </div> at the end somewhere.
    Opps... that happened when I was stripping down the page to create a working example of my issue. I've fixed the missing div and re-uploaded both pages. The problem is still there.
    Change display: inline; to float: left; and add margin: 0 0 4px 4px; (as shown below)
    I had already tried using float, but something else in the code was forcing the columns to 2 instead of 3.
    Have you used "Apply Source Formatting" ?
    I use that religiously. I'm quite anal about visually clean code.
    Well, I just fixed the problem while replying... funny... I removed the margins from the actual img element (.imageThumb img) and placed it on the div which surrounds the img (.imageThumb). I also reapplied the float. Thanks all for the help - it helped me rethink. But I could have sworn I had once placed the margins on .imageThumb before and it didn't work.
    .imageThumb {
        width: 100px;
        height: 75px;
        display: inline;
        float: left;   
        margin: 0px 10px 10px 0px;
        cursor: pointer;
    .imageThumb img {
        /*margin: 0px 10px 10px 0px;*/

  • How do i remove double space in messages?

    All of my Mail using Apple Mail has double spaces in them how do I do I change to single-space?
    Sebastian

    Yes. That is the technique I traditionally use to drop an image into text. I even cut and pasted again as you suggested with the same result. Trust me, this is driving me nuts. I'm not doing anything different than before, but my results are different, even within the same document. I'll attach a few examples, all from this same document.
    How the space after my in-line image is supposed to look:
    And then a few of the pages with the mystery gap:

  • Nokia N8 Landscape Keyboard Double Spaces when typ...

    Has anyone else had a problem when on Facebook or Twitter or any other text field when browsing the internet. When you turn the phone to landscape to get a full keyboard and you his space between words you get a double space... this happens ALL THE TIME... even in the social app.
    But when emailing or Texting it works fine... I was told it was software problem with my unit.
    I would like to get the update to PR1.1 but I can't find anything for my product code 059D391
     Anyone else have this problem with the Rogers Nokia N8?
    Thank you

    I just noticed this today. When typing email, notes or other entries it seems fine but when commenting on facebook it does the double space thing. The new firmware is not available for Rogers yet... still waiting.

  • Java Regular Expression for double spaces

    I am using ([\\s\\s]+) this regex for finding double spaces but if in single segment (Text Line) there exists two or more double spaces then it is finding only one from it .
    Matcher m = Pattern.compile( regexp ).matcher(Segment );
    while(m.find)
    p.println(" ERROR :: Punctuation (Double Dot ) Error");
    Suggets solution
    Thanks
    amit

    Hi,
    I understood the question like this:
    You have a String, and you want to find if the string have 2 or more than double spaces till the end of the string.
    I have attached a sample code for the above problem. Please have a look into it.
    public class FindDoubleSpacesInString {
         private static final String DOUBLE_SPACE_STRING = "tetett  etetete etetete     etete et e tet ";
          * @param args
          * loganathank
          * void
         public static void main(String[] args) {
              String doubleSpaceRegExPattern = "\\s{2,}";
              Pattern doubleSpacePattern = Pattern.compile(doubleSpaceRegExPattern);
              Matcher doubleSpaceMatcher = doubleSpacePattern.matcher(DOUBLE_SPACE_STRING);
              while(doubleSpaceMatcher.find()) {
                   System.out.println("double space found");
    }Please let me know, whether it resolves your problem.
    Regards,
    Loga

  • How to keep all lines drawn already??

    Dear friends:
    I have following code, it is runnable one, and each time, I can draw Only ONE line between any TWO buttons, and if I draw another line between another pair of buttons, the First line dispear,
    But I hope all line I drwa before will be kept and until I delete or remove them,
    How to do it??
    package com.lib;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PaintTest
        public PaintTest()
            Parent parent = new Parent();
            TargetSelector selector = new TargetSelector(parent);
            parent.setLayout(new BorderLayout());
            parent.add(getPanel(selector), "West");
            parent.add(getPanel(selector), "East");
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(parent);
            f.setSize(500,400);
            f.setLocation(200,200);
            f.setVisible(true);
        private JPanel getPanel(TargetSelector selector)
            JPanel panel = new JPanel(new GridBagLayout());
            Dimension d = panel.getPreferredSize();
            d.width = 240;
            panel.setPreferredSize(d);
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(5,5,5,5);
            gbc.weighty = 1.0;
            gbc.weightx = 1.0;
            gbc.fill = gbc.BOTH;
            gbc.gridwidth = gbc.REMAINDER;
            for(int j = 0; j < 4; j++)
                JPanel p = new JPanel();
                p.setBackground(new Color(220,240,240));
                p.setBorder(BorderFactory.createEtchedBorder());
                p.addMouseListener(selector);
                panel.add(p, gbc);
            return panel;
        public static void main(String[] args)
            new PaintTest();
    class Parent extends JPanel
        Line2D line;
        public Parent()
            line = new Line2D.Double();
        public void paint(Graphics g)  // paint will draw over the child components
            super.paint(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.red);
            g2.draw(line);
        public void setLine(Point[] points)
            line.setLine(points[0], points[1]);
            repaint();
    class TargetSelector extends MouseAdapter
        Parent parent;
        JPanel selectedPanel;
        final int
            NORTH =  2,
            NW    =  3,
            WEST  =  1,
            SW    =  9,
            SOUTH =  8,
            SE    = 12,
            EAST  =  4,
            NE    =  6;
        public TargetSelector(Parent parent)
            this.parent = parent;
        public void mousePressed(MouseEvent e)
            JPanel panel = (JPanel)e.getSource();
            Point p = e.getPoint();
            Point pParent = SwingUtilities.convertPoint(panel, p, parent);
            if(selectedPanel == null)
                selectedPanel = panel;
            else
                parent.setLine(getClosestPoints(selectedPanel, panel));
                selectedPanel = null;
        private Point[] getClosestPoints(Component c1, Component c2)
            Point p1 = getClosestPoint(c1, c2);
            Point p2 = getClosestPoint(c2, c1);
            return new Point[] {p1, p2};
        private Point getClosestPoint(Component c1, Component c2)
            Rectangle r1 = SwingUtilities.convertRectangle(c1.getParent(),
                                                           c1.getBounds(), parent);
            Rectangle r2 = SwingUtilities.convertRectangle(c2.getParent(),
                                                           c2.getBounds(), parent);
            int outcode = r1.outcode(r2.getCenterX(), r2.getCenterY());
            Point p = new Point();
            switch(outcode)
                case NORTH:
                    p.x = r1.x + r1.width/2;
                    p.y = r1.y;
                    break;
                case NW:
                    p.x = r1.x;
                    p.y = r1.y;
                    break;
                case WEST:
                    p.x = r1.x;
                    p.y = r1.y + r1.height/2;
                    break;
                case SW:
                    p.x = r1.x;
                    p.y = r1.y + r1.height -1;
                    break;
                case SOUTH:
                    p.x = r1.x + r1.width/2;
                    p.y = r1.y + r1.height -1;
                    break;
                case SE:
                    p.x = r1.x + r1.width -1;
                    p.y = r1.y + r1.height -1;
                    break;
                case EAST:
                    p.x = r1.x + r1.width -1;
                    p.y = r1.y + r1.height/2;
                    break;
                case NE:
                    p.x = r1.x + r1.width -1;
                    p.y = r1.y;
                    break;
                case 0 /* INSIDE */:
                    System.out.println("selectedPanel == panel");
                    break;
                default:
                    throw new IllegalArgumentException("illegal outcode: " + outcode);
            return p;
    }Thanks so much in advance
    Sunny

    Dear friends:
    I have following code, it is runnable one, and each
    time, I can draw Only ONE line between any TWO
    buttons, and if I draw another line between another
    pair of buttons, the First line dispear,
    But I hope all line I drwa before will be kept and
    until I delete or remove them,
    How to do it??As itchyscratchy said, store all the information and paint it each time. Also, read this article:
    http://java.sun.com/products/jfc/tsc/articles/painting/index.html

  • Mail.app adding double spaces

    Recently Mail.app has started to replace some single sword spaces in plain-text e-mails with double spaces. I ran some tests and it seems to occur at regular intervals. Every 60+ characters, Mail.app adds a double space between words instead of a single one.
    Every message shows up correctly in the "Sent" folder but when I check Hotmail, for example, there are suddenly double spaces popping up here and there. I've checked my e-mail on university campus with another e-mail client (Horde) and it also displayed double spaces every 60 characters or so.
    I've tried another POP-account and the problem persisted. I've trashed the Mail.app .plist and the problem is still there. I've looked at every setting in the "Preferences" menu and the problem is still present.
    I don't have the first clue what is wrong or how to fix this.
    Any help would be much appreciated.
    Thanks in advance.
    iMac G5   Mac OS X (10.4.8)  

    I believe I have a fix; this at least worked for me on both machines (home and work) that were exhibiting this issue:
    Quit Mail and Safari (the latter may be voodoo on my part, but why not?)
    Open Users -> <username> -> Library -> Mail -> V2 -> MailData (In OS X 10.8, the easy shortcut to the Library folder, which is hidden, is to hold down the Option key and click on the Go menu in the Finder; it'll appear as an option without a keyboard shortcut.)
    Move all files with names that begin "Envelope Index" to the Trash. I had three such files.
    Restart (again, this may be voodoo)
    Open Mail. It will engage in a full reindexing of all your messages. I had about 65,000 messages, and this import/index process took about 10 minutes.
    Once import is complete, your inboxes may appear to be empty. I had to quit Mail and relaunch it before all my messages were visible.
    After some quick testing on previously problematic emails, the super annoying line break bug seems to be gone!

Maybe you are looking for