do you use vim? There is a nice function that can straighten this out for
you. Also tabs va spaces can make a difference. Make sure a given block is
either all space indented ot all tab indented.

add to vimrc

set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<


then type

:set list

this will show whitespace characters and highlight difference tabs/spaces
to see them.

--jerry

On Wed, Dec 26, 2012 at 4:16 PM, Ramiro Morales <cra...@gmail.com> wrote:

>
> On Dec 26, 2012 5:56 PM, <rktur...@gmail.com> wrote:
> >
> > This is strange - the original code is indented correctly; however, the
> copy/paste shows incorrect indentation.
>
> This could happen if you mix spaces andás tabs. Read some introductory
> Python material to know more why this is a bad idea and a basic mistake.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 

Gerald Klein DBA****

contac...@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>****

geraldklein.wordpress.com

j...@zognet.com****

708-599-0352****


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to