|
Posted by Julien Plιe on 08/12/07 15:50
Le Sat, 04 Aug 2007 21:15:01 -0700, Kevin Raleigh a Γ©critΒ :
> I have one very long line of code that ends abruptly with a " ! "
> exclamation point.
> If I add or subtract code the exclamation point moves accordingly. "This
> character is injected", and it is not part of my code Here is the code.
> Look to the very last line of the code:
>
(SNIP)
>
> NOTICE that the last character is an " ! "
>
> Has anyone ever had this problem before? Any suggestions on how to break
> the html code into multiple lines of code?
>
> insight appreciated
> thank you
> Kevin
Hello Kevin,
Easy to do: first you need to now WHERE you CAN cut the string (so that
it won't disturb the display). Then, you have to new WHERE you HAVE TO
cut the string (so that you're sure you won't cut it to many times nor to
little times). Then, you have to now HOW you can cut the string
(actually, this will be by inserting a new line ("\n") or carriage return
+ new line ("\r\n") or maybe still the old MacOS way: a carriage return
("\r")). Then, you have to find how to merge all those rules together and
try your algorithm.
Like I told, easy, but I'm too lazy to code it :o)
Julien
[Back to original message]
|