-
Notifications
You must be signed in to change notification settings - Fork 34
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
alectryon.el: editing in reST mode should handle tabs #89
Comments
Ah, indeed — I haven't thought about tabs at all. The reST spec says:
How bad would it be to convert all tabs to spaces as part of the conversion process? Not exactly in line with the whole "reversible conversion" aspect, but very simple to implement ^^ |
I imagine the alternative would be to adjust the way the code measures indentation, but it will require in-depth testing to make sure that all cases are properly handled. |
Ah, but this isn't sufficient, because dedenting a line may require replacing a tab with spaces before removing leading spaces.
|
I think that is reasonable. I encountered this issue when some editing I was doing silently inserted tab characters I didn't want. |
Excellent. I will try to implement this. |
In
alectryon.el
, going from reST mode to Coq mode (or saving a file while opened in reST mode) does not handle tab characters that appear incoq
blocks. Instead Alectryon seems to begin a new prose block.Sample input (in reST mode). Note that
auto
here is indented with a hard tab character.Sample output from saving or switching to Coq mode:
Output obtained if the tab is replaced with spaces:
The text was updated successfully, but these errors were encountered: