confusing indentation #1024

Closed
opened 2025-11-02 03:45:38 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @binford2k on GitHub (Aug 30, 2017).

When typing out an indented block of code, the first line is indented with a [tab] character and the rest are indented with spaces. That makes for some really weird looking code. (And totally invalid code, if you're writing Python.)

https://try.gitea.io/nope/foobar/src/master/test.pp

Originally created by @binford2k on GitHub (Aug 30, 2017). When typing out an indented block of code, the first line is indented with a [tab] character and the rest are indented with spaces. That makes for some really weird looking code. (And totally invalid code, if you're writing Python.) https://try.gitea.io/nope/foobar/src/master/test.pp
GiteaMirror added the topic/uiissue/confirmed labels 2025-11-02 03:45:38 -06:00
Author
Owner

@bkcsoft commented on GitHub (Sep 4, 2017):

Where are you typing this?

@bkcsoft commented on GitHub (Sep 4, 2017): Where are you typing this?
Author
Owner

@binford2k commented on GitHub (Sep 8, 2017):

https://try.gitea.io/nope/foobar/src/master/test.pp

Click the edit pencil.

@binford2k commented on GitHub (Sep 8, 2017): https://try.gitea.io/nope/foobar/src/master/test.pp Click the edit pencil.
Author
Owner

@bkcsoft commented on GitHub (Sep 10, 2017):

In the web-editor then.

fd85e25f5f/public/js/index.js (L964-L982)

Looks like the editor config is only loaded when one edits the filename 🤔 And the order of setting it also seems off...

@bkcsoft commented on GitHub (Sep 10, 2017): In the web-editor then. https://github.com/go-gitea/gitea/blob/fd85e25f5f48823c4e65f3bd23662fd26d1398b3/public/js/index.js#L964-L982 Looks like the editor config is only loaded when one edits the filename 🤔 And the order of setting it also seems off...
Author
Owner

@bkcsoft commented on GitHub (Sep 10, 2017):

On a side-note I noticed that the CodeMirror version we ship is very old https://github.com/codemirror/CodeMirror/releases/tag/5.17.0 and we should probably upgrade it to the newest version https://github.com/codemirror/CodeMirror/releases/tag/5.29.0

@bkcsoft commented on GitHub (Sep 10, 2017): On a side-note I noticed that the CodeMirror version we ship is very old https://github.com/codemirror/CodeMirror/releases/tag/5.17.0 and we should probably upgrade it to the newest version https://github.com/codemirror/CodeMirror/releases/tag/5.29.0
Author
Owner

@stale[bot] commented on GitHub (Feb 12, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 12, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@techknowlogick commented on GitHub (Feb 12, 2019):

We could probably update to this version now: https://github.com/codemirror/CodeMirror/releases/tag/5.43.0

@techknowlogick commented on GitHub (Feb 12, 2019): We could probably update to this version now: https://github.com/codemirror/CodeMirror/releases/tag/5.43.0
Author
Owner

@stale[bot] commented on GitHub (Apr 14, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Apr 14, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@lafriks commented on GitHub (Oct 15, 2019):

Can you recheck on try.gitea.io if problem has been solved with codemirror update

@lafriks commented on GitHub (Oct 15, 2019): Can you recheck on try.gitea.io if problem has been solved with codemirror update
Author
Owner

@lafriks commented on GitHub (May 14, 2020):

Closing as we have replaced CodeMirror with Monaco Editor

@lafriks commented on GitHub (May 14, 2020): Closing as we have replaced CodeMirror with Monaco Editor
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1024