Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Getting an error in running the latest version of the script. #5

Open
Sristuff opened this issue Nov 26, 2015 · 7 comments
Open

Getting an error in running the latest version of the script. #5

Sristuff opened this issue Nov 26, 2015 · 7 comments
Labels

Comments

@Sristuff
Copy link

Hi
Trying out the script for a document filled with Tables and images and got the following error.

Unfortunately it is not saying which line is at fault in the document for me to fix it or temporarily comment/remove it out.

Thanks
Srihari

Message details
TypeError: Cannot find function getIndentFirstLine in object Table

@lmmx lmmx added the bug label Dec 5, 2015
@oweizman
Copy link

oweizman commented Sep 9, 2016

Hi,

I am also getting this same issue when trying to run the script. Is there any work around?

@zhukovgreen
Copy link

Me either

@grahamlittle
Copy link

yes i can confirm this issue still exists

@jtheuer
Copy link

jtheuer commented Mar 31, 2017

same here, did anybody find the reason already?

@jftesser
Copy link

jftesser commented May 3, 2017

yep, happened to me too!

@katharing
Copy link

I found that setting the values of ind_f, ind_s and ind_e to 0 worked.

In other words, changing these lines:

  var ind_f = element.getIndentFirstLine();
  var ind_s = element.getIndentStart();
  var ind_e = element.getIndentEnd();

to

  var ind_f = 0;
  var ind_s = 0;
  var ind_e = 0;

@jftesser
Copy link

jftesser commented May 5, 2017

My export is succeeding now, tables showing up as html. Thanks for the fix!

jefforce added a commit to jefforce/gdocs2md-html that referenced this issue May 14, 2018
* Fixed an errant "#".
* Set ind_f, ind_s, and ind_e to 0 instead of relying upon
  element.getIndent* for Table objects (which seems not to work).
  See lmmx#5
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants