salimoha / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Editing a Google Doc in Emacs changes its font to Courier #402

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create a Google Doc named "test".  its font will be the default, which is 
Arial.
2.  google docs edit "test" --editor /usr/bin/emacsclient
3.  Go back to Docs and look at the document.   Its font will now be Courier 
Light

What is the expected output? What do you see instead?

I would like the font to stay unchanged.  Is there a workaround?

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

googlecl-0.9.13, on a Mac 10.6.7, with Python 2.6.

Please provide any additional information below.

This is easily reproducible.

Original issue reported on code.google.com by marcle...@gmail.com on 4 Jul 2011 at 12:22

GoogleCodeExporter commented 9 years ago
This issue occurs because googlecl defaults to "--format txt", which does not 
preserve formatting.

A workaround is to use "--format rtf" or "--format html" but your editor must 
be able to handle the codes provided by those formats in order to sanely expect 
to edit the files.

A more elegant workaround may be to code a wrapper script that parses the 
relevant text from a different format (such as RTF or HTML) and opens a 
temporary copy of this section in your editor. You could then point "--editor" 
to this script.

Original comment by spruchnu...@gmail.com on 6 Aug 2011 at 10:24

GoogleCodeExporter commented 9 years ago

Original comment by szy...@endpoint.com on 29 Dec 2012 at 7:36