Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Fixed an issue with the extension not working with tabs-indented files, slightly improved style#3

Merged
scriptin merged 1 commit intoscriptin:masterfrom
giovannicalo:master
Jan 31, 2015
Merged

Fixed an issue with the extension not working with tabs-indented files, slightly improved style#3
scriptin merged 1 commit intoscriptin:masterfrom
giovannicalo:master

Conversation

@giovannicalo
Copy link
Contributor

I fixed the issue you had with the extension not working with tabs-indented files.
The main problem was the cm-tab class being an inline-block instead of a regular inline.
The second problem was the formula you used to calculate the padding-left, which wouldn't take character width into account for tab characters.
The style change might break something in CodeMirror. However, I noticed no difference.
I also shortened the regular expression that finds the position of the first non-space character and replaced single quotes with double quotes to be consistent with the rest of the file.

scriptin added a commit that referenced this pull request Jan 31, 2015
Fixed an issue with the extension not working with tabs-indented files, slightly improved style
@scriptin scriptin merged commit 6fb10d3 into scriptin:master Jan 31, 2015
scriptin added a commit that referenced this pull request Jan 31, 2015
@scriptin
Copy link
Owner

@giovannicalo Thank you so much!

@OKNoah
Copy link

OKNoah commented Jan 31, 2015

@giovannicalo you rock

scriptin added a commit that referenced this pull request Aug 31, 2017
Fixed an issue with the extension not working with tabs-indented files, slightly improved style
scriptin added a commit that referenced this pull request Aug 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants