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

Displaying python scripts indented with tabs #554

Open
nsajko opened this issue Jul 8, 2021 · 0 comments
Open

Displaying python scripts indented with tabs #554

nsajko opened this issue Jul 8, 2021 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@nsajko
Copy link

nsajko commented Jul 8, 2021

Describe the bug
The MicroPython app can not correctly display python scripts indented with tabs

To Reproduce
Steps to reproduce the behavior:

  1. Go to apps/code/script_template.cpp
  2. Indent some script with tabs
  3. Build and run
  4. Displaying the script in Omega does not work completely correctly, there is corruption, extra characters and such stuff.

Expected behavior
A tab should be just be displayed as is standard for tabulator characters, without causing extra characters to appear.

This is how the code should look like:

from math import *
from turtle import *
def squares(angle=0.5):
        reset()
        L=330
        speed(10)
        penup()
        goto(-L/2,-L/2)
        pendown()
        for i in range(660):
                forward(L)
                left(90+angle)
                L=L-L*sin(angle*pi/180)
        hideturtle()

Photos
IMG_20210708_200156_2

Desktop (please complete the following information):

@nsajko nsajko added Status: Triage Type: Bug Something isn't working labels Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants