Closed GoogleCodeExporter closed 8 years ago
In first step I mean
google blogger post --title "my new python program" .../spam.py
Original comment by osmpa...@gmail.com
on 18 Jul 2011 at 10:53
googlecl has nothing to do with this issue because it sends the file to Blogger
without any modifications.
I believe Blogger cleans up the additional space/tab chars. The data/file sent
to Blogger is expected to be HTML code.
In order to keep your indentation, you need to
1. Escape your source code for HTML.
2. Wrap the escaped code with `<pre>`. (optional, or you will also need to escape consecutive spaces)
It can be done with additional script and pipe into googlecl (Issue 104),
`<command to escape> file | google.py blogger post __`
Or maybe a new option for escaping?
Original comment by livibet...@gmail.com
on 7 Aug 2011 at 3:03
> I believe Blogger cleans up the additional space/tab chars.
Blogger doesn't modify your post content. GoogleCL sets the content type to
HTML, and Blogger publishes the content as such. Like you're saying you should
use ' 's or <pre> for preserving indentation.
Original comment by t.ma...@gmail.com
on 3 Oct 2011 at 10:49
This occurs even if you use <pre> elements. I created a new blog with some
source code in it and I used <pre> elements to surround the code and Google ate
all my whitespace. Stupid Google corrupts my data!
Original comment by buck.rob...@gmail.com
on 23 Nov 2011 at 2:16
Works correctly with <pre> elements. Tested on code from trunk.
Original comment by szy...@endpoint.com
on 29 Dec 2012 at 8:13
Original issue reported on code.google.com by
osmpa...@gmail.com
on 18 Jul 2011 at 10:51