https://defect.opensolaris.org/bz/show_bug.cgi?id=19108
--- Comment #3 from Knut Anders Hatlen <[email protected]> 2011-12-19 13:47:02 UTC --- (In reply to comment #2) > No, intentionally. Actually in 0.10 there was no way to specify the tab size > (and IIRC it wasn't even honored) and if one forced programatically to use > tabs, the result was unacceptable, because \t got always replaced with 8 > spaces I've used it in some of my projects, and it did get honored in 0.10. But it used to be a bit tricky to use, since you'd need to add it to the configuration file manually, so having the -t option in the indexer is good (would be even better if the option was per project). > ... I also checked the CSS3 tab-size property (I actually what I would prefer > in the 1st place), but at this point no browser supported it. So I made > tabsize > settings work and set it to 4 per default - not 8 because in the browser it > does not really matter because of nowrap, Well, it does matter if the project expects tabs to be 8 characters wide. Then code that uses a mix of tabs and spaces doesn't line up. > > The immediate fix for this problem is to remove that call from the > > constructor > > so that the default tab size is reverted to unspecified. > > Or simply use -t 0 when calling the Indexer. Except none of those workarounds worked satisfactory in my environment. The stop token got recognized alright, and the highlighting was fixed. But because of some other changes after 0.10, the initial tab on each line was just two characters wide. I've logged bug #19110 to get the default tab handling right. Let's keep this bug open to track the problem with broken syntax highlighting if tab size is set to a non-default value. -- Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ opengrok-dev mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opengrok-dev
