SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

unformatted text #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

((String)((TextContent)entry.getContent()).getContent().getPlainText())

it returns the text with out spaces and line breaks???how can i resolve this???

Original issue reported on code.google.com by engahs...@gmail.com on 28 Jan 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Is the content plain text?.  if so the formatting will not be preserved.  

Original comment by vbarat...@gmail.com on 28 Jan 2009 at 1:43

GoogleCodeExporter commented 9 years ago
bro i have formatted text on post,for example i have used the list item tag of 
html,
so how can i retrieve the text as posted on blog????

Original comment by engahs...@gmail.com on 29 Jan 2009 at 6:08

GoogleCodeExporter commented 9 years ago
TextConstruct tx=(TextConstruct)t.getContent();
 now i m doing  tx.getPlainText();
but this method returns the post detail with out line breaks,

original post:
ahsan
shaikh
pak

method returns:
ahsanshaikhpak

but i wants actual text like on post.
rep sooon plz how can i do this?

Original comment by engahs...@gmail.com on 29 Jan 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Plain text are non immune to whitespace stripping.

see: http://www.ietf.org/rfc/rfc4287.txt section "4.1.3.3.  Processing Model" 
part#1.

If you need to preserve whitespace you have to use non-plain text type.  either 
html
or xhtml.

Original comment by vbarat...@gmail.com on 29 Jan 2009 at 1:35

GoogleCodeExporter commented 9 years ago
which method should i call ???
i m not getting the document which u have described,
plz repl sooon

Original comment by engahs...@gmail.com on 29 Jan 2009 at 7:21

GoogleCodeExporter commented 9 years ago
thx vbrathan i have got my goal
using HtmlTextConstruct class.

tell me now can i handle the allow or dis allow comments on my posts using 
google
blogger java api??
i m w8ing,
thx in advance

Original comment by engahs...@gmail.com on 30 Jan 2009 at 9:15

GoogleCodeExporter commented 9 years ago
labels are allowed using java api or not???

Original comment by engahs...@gmail.com on 30 Jan 2009 at 9:16

GoogleCodeExporter commented 9 years ago
Hi, Please post the question in 
http://groups.google.com/group/google-help-dataapi
for questions related to GData APIs which is monitored by larger group of 
developers.

Original comment by vbarat...@gmail.com on 30 Jan 2009 at 6:07