murphaloid — 2011-11-16T14:14:24-05:00 — #1
Just copied a load of text from a pdf document and pasted it into my html document in Text Mate. Only element Ive used is <p>.
The problem is that the page renders (in all browsers) with almost no spaces in-between the words of text, resulting in one very long word indeed!
technobear — 2011-11-16T14:49:50-05:00 — #2
I've never used Text Mate, so I'm guessing here. Do you have an option checked somewhere to strip whitespace? I take it the text looks OK in Text Mate but not in the browser?
victorinox — 2011-11-16T15:12:37-05:00 — #3
Sounds like you've copied incompatible space characters from the PDF.
Try replacing them: in TextMate, open the HTML document, select a space between words, copy it, press Apple-F to open the Find window, paste the space character into the Find field, go to the Replace field and press the spacebar to enter a space. Click the Replace All button. View in Web Preview or save and view in a browser.
murphaloid — 2011-11-16T17:26:47-05:00 — #4
Victorinox...youre a genuis! it worked perfectly
thanks to both of you!