You are correct. The translation API does not preserve newlines. What you could 
do is replace newlines with <br/> and then send the string as HTML. When it 
comes back, replace the <br/>'s with newlines.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
[email protected]

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 25, 2010, at 7:05 AM, arashh92 wrote:

> Hi all I think I have a simple question, I have a translation api from
> google on my site, but the problem is when I type in:
> 
> Hi, this is the story of my life.
> My second story is about my own-made game.
> 
> it translates it to dutch but like this:
> 
> Hallo, dit is het verhaal van mijn leven. Mijn tweede verhaal gaat
> over mijn eigen gemaakte spel.
> 
> It doesn't seem to see any "enters".
> 
> How can I fix this?
> 
> Thanks in advance!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google AJAX APIs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to