Forum Moderators: travelin cat
I have a PowerMac OS 9.0 and write all my code by hand in Simple Test.
I received a document from a web client to add to her web site that was produced in Publisher on a PC. I don't have publisher but was able to open it in Word 5.0 so I can get the text. I noticed that everywhere there should have been a space between words that the translation produced 2 or more spaces. I didn't think much of it because spaces are ignored in html anyway.
It wasn't till I was all done formatting and had posted it to her web site and tried to validate it (W3C) that I noticed that everywhere she had entered a space publisher translated it into two or more spaces when saving the doc to my Mac.
This is a 30 K doc, but even so I tried taking out the spaces manually and tested it after a few paragraphs with the validator but that didn't effect it at all. I also opened BB edit and although the spaces dissappear in there visually and manually it still records each space as an error and still won't validate so there is something else causing the problem.
The validator is saying something about SMLG character error for every space in the doc which means probably a couple thousand errors.
Any suggestions on how to get the spaces out other typing the whole document from scratch?
Lorel
Could be the mysterious invisible char 0/1.
What if you put the text in a html page, browse it and copy paste the text from the browser window to a BBEdit file? Wouldn't this remove the mysterious spaces too?
(I have a script that strips invisible/unwanted chars from a text but you'd need 4D for MacOS - i doubt you have that installed.)
Hmm ... you allready replaced all spacespace by space using BBEdit, right!?
I opened bbedit and all the extra spaces dissapeared. I saved it, uploaded it and it still didn't validate --had same errors.
Could be the mysterious invisible char 0/1.
Yes, I do believe that is what the validator said.
What if you put the text in a html page, browse it and copy paste the text from the browser window to a BBEdit file? Wouldn't this remove the mysterious spaces too?
I had a lot of internal links and other code in there--I was trying to not have to do that again.
(I have a script that strips invisible/unwanted chars from a text but you'd need 4D for MacOS - i doubt you have that installed.)
No, I don't have it. Thanks for trying to help. I"m currently retyping the whole thing--unless someone knows of a solution.
Lorel
[edited by: Macguru at 10:07 pm (utc) on May 8, 2004]
[edit reason] Cleaned up UBB codes [/edit]