Changeset 46472c61 in sasview for calculatorview/src/sans


Ignore:
Timestamp:
Jan 23, 2012 11:37:52 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
83e0aa1
Parents:
0c56727
Message:

fixed a bug: not proper line indentation for some cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/model_editor.py

    rf9feff3 r46472c61  
    508508            elif line.count("#function here"): 
    509509                for func_line in func_str.split('\n'): 
    510                     f_line = func_line.lstrip().rstrip() 
     510                    f_line = func_line.rstrip() 
    511511                    if f_line: 
    512512                        out_f.write(spaces + f_line + "\n") 
Note: See TracChangeset for help on using the changeset viewer.