Hi guys.
I'm newly switched to Dreamweaver.
One weird problem I'm having is that dreamweaver keeps adding tons of extra blank spaces to my pages.
Check out this page, for instance: http://dl.dropbox.com/u/53677587/ArticleList.html
If you look at the source code, you'll see the article entries separated by many, many lines of white space. When I paste it into my html editor, it shows as having 21,000 lines of code.
I've tried pasting the page content onto a fresh page but it keeps doing the same thing.
Other pages are like this too.
When I try to upload these pages, I'm told: "The size limit for an HTML page is 400 kB. The size of your "ArticleList.html" file is 434.55 kB.Large HTML files increase page load-up time, and are very user -unfriendly. Please reduce the size of your file and try again. "
Any idea what's going on and how I can fix it?
Thanks.
Are you copying from a MS Wird document?
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340d cda9110b1f693f21-7ce8a.html
Martin
Like 'martcol' rightly said, if you're copying content from a 'rich text editor' such as MS Word or something similar you'll face this issue as Dreamweaver tries to retain as much as rich formatting as possible when you copy/ paste to the 'Design View' of Dreamweaver. This is a very bad practice when it comes to editing webpages.
You could do one of the 2 things to get rid of this issue:
1. Copy text from MS Word, paste it into a non-rich text editor such as Notepad (for Windows) or Smultron (for Mac). This will remove all formatting for you.
2. You could copy paragraph by paragraph and paste it into Dreamweaver's 'Code View' instead of 'Design View'. This will only paste the text 'as is' and will clear formatting.
To style the pages, use CSS. This is usually considered a good practice and will optimize your pageload times as well.
Let us know if this works.
Martcol
The text was either copied directly from a fully-loaded webpage or pasted in from my former HTML editor, "SeaMonkey".
You could do one of the 2 things to get rid of this issue:
1. Copy text from MS Word, paste it into a non-rich text editor such as Notepad (for Windows) or Smultron (for Mac). This will remove all formatting for you.
2. You could copy paragraph by paragraph and paste it into Dreamweaver's 'Code View' instead of 'Design View'. This will only paste the text 'as is' and will clear formatting.
1) I've never used MS word for my pages. Can I paste the text from DW into smultron? Once its in Smultron, what do I do with it?
Is there no way to remove blank spaces automatically once they're in DW?
If I've already got this dream weaver file with the extra spaces, how do I go about fixing it outside of manually deleted thousands upon thousands of blank lines?
2) Since this is an issue on many pages, this seems like a very slow fix.
So I would literally have to lose all my formating, images, etc and start from scratch for every page?
To style the pages, use CSS.
Do you mean that once I have the text in DW I should only use the in-program controls to make changes?
Martcol - I read that page you linked to. It said:
In preferences, I do have checked,
"Clean Up Word Paragraph Spacing
- Select this option if you selected Text With Structure or Text With Structure Plus Basic Formatting, and want to eliminate extra space between paragraphs when you paste your text."
Didn't seem to make a difference.
Not sure why this has happened then.
There is an expression you could use - doesn't work with Dreamweaver running on Mac OS Lion - its a known issue.
But you could give it a shot:
If that doesn't work, Smultron can remove blank/ duplicate lines for you easily.
Open the code with Smultron.Tools > Commands > Other > Remove Duplicate Lines - This will definitely work. I had your code with some 21,044 lines and after doing this in Smultron, I now only have 1618 lines.
Hope this helps.
To style the pages, use CSS.
Do you mean that once I have the text in DW I should only use the in-program controls to make changes?
By saying 'use CSS', I meant style all your elements using pure CSS. Do not rely on formatting from other 3rd party rich text editors. Copy and paste your content blank afresh into a new Dreamweaver document. Then style them using a CSS file that your main HTML/ PHP file links to.
North America
Europe, Middle East and Africa
Asia Pacific