Formatting Python code

Rich Shepard rshepard at appl-ecosys.com
Mon May 30 12:48:24 UTC 2022


On Fri, 27 May 2022, Paul A. Rubin wrote:

> If the code was copied from outside LyX and pasted in, maybe there are
> some stray nonprinting characters and/or one of the supposed end-of-line
> characters is borked. The simplest way to test this would be to backspace
> over the offending commas and surrounding spaces and then type them back
> in.

Paul,

I learned the reason for the spacing issues is that the program listing
environment does not support tabs for white space, only spaces. Kinda' hard
on the keyboard's space bar. :-)

Best regareds,

Rich



More information about the lyx-users mailing list