Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google doc string with tab length ==4 not 2 #182

Open
aaa34169 opened this issue Apr 16, 2021 · 1 comment
Open

google doc string with tab length ==4 not 2 #182

aaa34169 opened this issue Apr 16, 2021 · 1 comment
Labels

Comments

@aaa34169
Copy link

First. thank for your package. I am using it for documenting mine.

i use google doctring and would like to add an example section.

I simply wrote in my editror ( atom , with tab length set to 4)

Examples:

    analysisInstance = analysis.makeAnalysis(DATA_PATH,
                            [file1.c3d,"file2.c3d"],

the ouput markdown ouput a code with 2 spaces instead of 4 preventing to display litteral code.

is there a setting to alter somewhere

regards

Fabien

@NiklasRosenstein
Copy link
Owner

Thanks for reporting this @aaa34169 . It will need to be fixed in the GoogleProcessor class here in case you want to attempt a fix:

if line.startswith("```"):
in_codeblock = not in_codeblock
current_lines.append(line)
continue
if in_codeblock:
current_lines.append(line)
continue
line = line.strip()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants