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

Insert spaces when tab key is pressed #125

Closed
fxha opened this issue Apr 9, 2018 · 4 comments
Closed

Insert spaces when tab key is pressed #125

fxha opened this issue Apr 9, 2018 · 4 comments
Assignees
Labels
🐝 resolved/fixed but not released The bug has been fixed and the new version is not released, So it still opened 🦄 feature request New feature or request

Comments

@fxha
Copy link
Contributor

fxha commented Apr 9, 2018

PR #119 disabled tab focus, but does not insert a tab/spaces into document because if you insert a tab or multiple spaces, it will get converted into one space. So we have to find a way to resolve the problem.

Maybe use something like this:

<span class="cm-tab" role="presentation" cm-text="	">  </span>

Code template

@Jocs Jocs added the 🦄 feature request New feature or request label Apr 9, 2018
@Jocs Jocs added this to To Do in version 0.11.25 Apr 16, 2018
@fxha fxha mentioned this issue Apr 18, 2018
@Jocs
Copy link
Member

Jocs commented May 22, 2018

if you insert a tab or multiple spaces, it will get converted into one space.

Do you find the reason why it will convert multiple spaces to one space? I think this is the key point to this issue.

I find a question on stack overflow https://stackoverflow.com/questions/433493/why-does-html-require-that-multiple-spaces-show-up-as-a-single-space-in-the-brow

@Jocs
Copy link
Member

Jocs commented May 22, 2018

@fxha i have fixed the problem bellow:

if you insert a tab or multiple spaces, it will get converted into one space.

Do you want to continue your work, Code template ?

@Jocs Jocs moved this from To Do to In Progress in version 0.11.25 May 22, 2018
@fxha
Copy link
Contributor Author

fxha commented May 22, 2018

I think somewhere in marked.js, importMarkdown or exportMarkdown because a b is also converted to a b - maybe a markdown rule?

@Jocs And how do you solve it?

@Jocs
Copy link
Member

Jocs commented May 22, 2018

@fxha

.ag-line {
  display: block;
+  white-space: pre-wrap;
}

@fxha fxha moved this from In Progress to Done in version 0.11.25 May 27, 2018
@fxha fxha added the 🐝 resolved/fixed but not released The bug has been fixed and the new version is not released, So it still opened label May 27, 2018
@Jocs Jocs closed this as completed May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐝 resolved/fixed but not released The bug has been fixed and the new version is not released, So it still opened 🦄 feature request New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants