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
Tabs vs Spaces #35
Comments
It would be helpful to see a specific example: the code and what error it produces. In |
Sorry that was totally my fault
Setup
ExampleThis one will work:
This one will not work:
The difference. The second code chunk was written in Stata editor. So the Spaces are "tabs" In the second case it will indicate that command " " does not exists. |
Also, Some extra information using IPYNB
…On Thu, Sep 7, 2023 at 2:52 PM riosavila ***@***.***> wrote:
Sorry that was totally my fault
---
title: "Stata Error"
format: html
jupyter: nbstat
---
Setup
sysuse auto, clear
Example
This one will work:
scatter price mpg, \\\
ytitle("Price") xtitle("Miles per Gallon") \\\
title("Scatterplot of Price vs. Miles per Gallon") \\\
subtitle("Automobiles 1978") \\\
note("Source: Stata Example Datasets") \\\
caption("Scatterplot of Price vs. Miles per Gallon")
This one will not work:
scatter price mpg, ///
ytitle("Price") xtitle("Miles per Gallon") ///
title("Scatterplot of Price vs. Miles per Gallon") ///
subtitle("Automobiles 1978") ///
note("Source: Stata Example Datasets") ///
caption("Scatterplot of Price vs. Miles per Gallon")
The difference. The second code chunk was written in Stata editor. So the
Spaces are "tabs"
in the first case, I redid the indentation using vsc, so each tabulation
is four "spaces"
—
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZKKFX5C5XMGAB6QVWVDXTXZIJWZANCNFSM6AAAAAA4PH3O24>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Not sure how to send you Jypter Notebooks, but |
Ok, right, I can confirm this is an nbstata issue, not pystata or quarto. |
The same issue occurs in v0.6.3 and v0.6.1, so it doesn't seem to have been introduced by recent changes to how comments and indentation are handled. |
It's actually quite a specific issue. For example, if you combined the |
Thank you! |
Hi Tim,
I recently noticed a small problem (not sure if its nbstata or pystata)
When copying a chunk of code from a dofile into a quarto document, and run the code, some problems emerge if the code starts with a tabulation (for long codes).
This can be easily fixed, however if one uses Spaces instead of Tabs
Minor problem, but may bite more when transferring from one Do to Quarto (and jupyter?)
Thank you
F
The text was updated successfully, but these errors were encountered: