prettyprinter icon indicating copy to clipboard operation
prettyprinter copied to clipboard

Support using tabs instead of spaces for indentation

Open hololeap opened this issue 1 year ago • 0 comments

I'm looking at using prettyprinter to generate .ebuild files, which use tabs instead of spaces for indentation. Every indentation-related function (such as align and hang) makes use of spaces exclusively with no way to change this behavior. It doesn't look like creating a new rendering function will solve this problem either. The only thing I have thought of would be to add a new field to LayoutOptions which carries the desired indentation character.

Is there a way to use tabs instead of spaces currently? If this is outside the scope of the package, are there any other packages that provide the ease-of-use of prettyprinter (esp. the align and hang functions) but support using tabs for indentation?

hololeap avatar Aug 31 '23 02:08 hololeap