nokia / ntt

Modern tools for TTCN-3
https://nokia.github.io/ntt/
BSD 3-Clause "New" or "Revised" License
71 stars 33 forks source link

Add new printer interface #671

Closed 5nord closed 2 years ago

5nord commented 2 years ago

This commit introduces a printer interface which makes it easier switch between tabs or spaces.

The format command now has a new option --tabs-to-spaces=N which will convert tabs to N spaces, if specified.

Additionally we start at indentation level -1, which is a hack to prevent module definitions being indented.