Giter Club home page Giter Club logo

Comments (5)

hotbrightsunshine avatar hotbrightsunshine commented on September 27, 2024 2

I am experiencing this issue too. I fear this has to do with the usage of the \t character. When using a code block (three backticks), using \t will always issue this problem. When rendering normal text, screen is not correctly cleared when using a \t. Some pattern I noticed:

```
\t
```

will always clear wrongly.

hello\t	with tab 

Using a \t inside a string is problematic, but using it at the beginning of the line is not. End of line doesn't seem to be a problem.

I am using slides under Linux Mint, with Gnome Terminal, and under Fedora with Gnome Terminal too.
I am not familiar with Go programming language, but I might take a look at the source code to see if there is any problem regarding what I said.

from slides.

Delta456 avatar Delta456 commented on September 27, 2024

I can reproduce the same on Linux using kitty terminal.

from slides.

XiaoPengYouCode avatar XiaoPengYouCode commented on September 27, 2024

I find a same problems, if this page has content and the corresponding position of the previous page is blank, when I return to the previous page, the content of the corresponding position of this page will be retained, my command line environment is gnome42.9

from slides.

gamebox avatar gamebox commented on September 27, 2024

Seeing the same thing on macOS Sonoma with Alacritty. Removing all tabs from inside code blocks resolves the issue

from slides.

gamebox avatar gamebox commented on September 27, 2024

I wonder if swapping these two lines in internal/model/model.go:210-211 would fix the issue?

slide, err := r.Render(slide)
slide = strings.ReplaceAll(slide, "\t", tabSpaces)

from slides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.