Results 1 to 4 of 4
Thread: Spaces in text missing!??
Nov 16, 2011, 13:14 #1
Spaces in text missing!??
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!
Nov 16, 2011, 13:49 #2
- Join Date
- Jun 2011
- Argyll, Scotland
- 273 Post(s)
- 5 Thread(s)
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?
Nov 16, 2011, 14:12 #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.
Nov 16, 2011, 16:26 #4
Victorinox...youre a genuis! it worked perfectly
thanks to both of you!