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

Code editor tabbing and Pretty Print tabbing are inconsistent #43

Closed
dqnykamp opened this issue Oct 19, 2023 · 2 comments
Closed

Code editor tabbing and Pretty Print tabbing are inconsistent #43

dqnykamp opened this issue Oct 19, 2023 · 2 comments

Comments

@dqnykamp
Copy link
Member

The built in tabbing for <codeEditor> is 2 spaces, but the tabbing for Pretty Print is 4 spaces. So, if I type <graph>{enter}<line />{enter}</graph>, the result is formatted with 2 spaces as

<graph>
  <line />
</graph>

Subsequently clicking Pretty Print, reformats to 4 spaces as

<graph>
    <line />
</graph>

Also, pressing tab in the <codeEditor> adds 2 spaces, consistent with it autoformat behavior.

@siefkenj
Copy link
Contributor

Sure. I can change it to 2 spaces by default (even though I think 4 is much easier to read...)

siefkenj added a commit to siefkenj/DoenetML that referenced this issue Oct 19, 2023
@siefkenj
Copy link
Contributor

Fixed in #24

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

No branches or pull requests

2 participants