From kwrite-devel Thu Jul 19 07:04:53 2007 From: Dominik Haumann Date: Thu, 19 Jul 2007 07:04:53 +0000 To: kwrite-devel Subject: Re: kate indentation system (again) Message-Id: <200707190904.55051.dhdev () gmx ! de> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=118482872717098 On Thursday 19 July 2007, Christoph Cullmann wrote: > On Thursday 19 July 2007 00:59, Dominik Haumann wrote: > > But still, can we maybe still provide both? > > > > What about extending the return type of the indent() function: > > - if the return value is a single number -> interpret as tab+spaces > > - if the return value is an array with 2 numbers -> interpret the first > >   number as tab+spaces and the second one as (forced) spaces only > > We can do so. But as vim doesn't, too, I am not sure, if that really is a > valid usecase, it makes the code much more complex, as the > unindent/indent routines would need script logic than, too, as there > could be interesting things happening on indent/unindent, or? Right, indent/deindent would screw it up, but that's it then ;) Dominik _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel