It’s really a feature of Python/Jython community, which strongly believes that indenting with spaces (not tabs) is the right way to go:
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out. -- Georg Brandl
See also PEP-8, the style guide for Python code ()
Of course, some people do prefer tabs, and should be able to use the tab key; a good way to handle that desire is to have your editor change “tab key” into the necessary number of spaces. (It also helps to have an editor that displays invisibles like tabs and spaces)
People have occasionally gone through the JMRI-released script files to convert tabs to spaces. We should probably do that again…
Bob
On Aug 20, 2018, at 7:32 PM, JerryG via Groups.Io <jerryg2003@...> wrote:
Thanks Cliff and Bob. I’ve been opening the script output window but will now also open the system console and look into logging. Cliff - you solved the indentation issue: I thought it was somehow related to tabs and spaces but couldn’t quite put my finger on it. Is this a “bug” in JMRI or just an unpleasant feature of the Jython interpreter?
--
Bob Jacobsen
rgj1927@...