[Geany] spaces, tabs and saving
Enrico Tröger
enrico.troeger at xxxxx
Thu Jun 7 15:13:59 UTC 2007
On Thu, 07 Jun 2007 11:12:07 +0200, Harold Aling <h.aling at home.nl>
wrote:
Hi all,
you are right. Anyway, the current code for replacing tabs isn't buggy.
It works as intended only the indention is a bit buggy.
What I want to say, I wasn't aware of this problem but I agree that it
should be improved to not only stupidly replace any tab by some
spaces with the amount of tab_width.
> After some tests I'd reckon that the best solution will be:
>
> "if spaces are followed by a tab then { if (no. of spaces <
> tabWidthInSpaces) then discard spaces }"
Sounds good.
But I won't work on this, at least not in the near future.
Any patches are welcome.
If anyone want to work on this, the start should be
document_replace_tabs() in src/document.c:1802.
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070607/1ef8bdee/attachment.pgp>
More information about the Users
mailing list