WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   small indentation question (https://forum.worldviz.com/showthread.php?t=1372)

dan12345 03-03-2008 04:50 AM

small indentation question
 
for some reason, vizard started showing blue lines before a beginning of
lines of code, signifying wrong indentation, eventhough the indentation is OKAY.
This also causes the script not to run, with an indentation error.
in order to fix it, each time i have to backspace and then space to the
same position, and this usually fixes it.
Why did this start happening? how do i solve it?
thanks!

mspusch 03-03-2008 04:57 AM

is it possible that you are mixing whitespace and tabs?
this would make the code look correct, but as python recognizes the difference between tabs and whitespace, this causes indentation errors.

to see what is going on, under the "view" menu, switch "whitespace" on.


All times are GMT -7. The time now is 11:09 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC