Changes in src/sas/sascalc/fit/pagestate.py [3b070a0:574adc7] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/pagestate.py
r3b070a0 r574adc7 646 646 name = value.split(':', 1)[1].strip() 647 647 file_value = "File name:" + name 648 #Truncating string so print doesn't complain of being outside margins649 if sys.platform != "win32":650 MAX_STRING_LENGHT = 50651 if len(file_value) > MAX_STRING_LENGHT:652 file_value = "File name:.."+file_value[-MAX_STRING_LENGHT+10:]653 648 file_name = CENTRE % file_value 654 649 if len(title) == 0: … … 726 721 html_str, text_str, title = self._get_report_string() 727 722 # Allow 2 figures to append 728 #Constraining image width for OSX and linux, so print doesn't complain of being outside margins 729 if sys.platform == "win32": 730 image_links = [FEET_2%fig for fig in fig_urls] 731 else: 732 image_links = [FEET_2_unix%fig for fig in fig_urls] 723 image_links = [FEET_2%fig for fig in fig_urls] 724 733 725 # final report html strings 734 726 report_str = html_str + ELINE.join(image_links) 735 report_str += FEET_3 727 736 728 return report_str, text_str 737 729 … … 1234 1226 namespaces=CANSAS_NS) 1235 1227 for entry in entry_list: 1228 try: 1229 sas_entry, _ = self._parse_save_state_entry(entry) 1230 except: 1231 raise 1236 1232 fitstate = self._parse_state(entry) 1233 1237 1234 # state could be None when .svs file is loaded 1238 1235 # in this case, skip appending to output 1239 1236 if fitstate is not None: 1240 try:1241 sas_entry, _ = self._parse_save_state_entry(1242 entry)1243 except:1244 raise1245 1237 sas_entry.meta_data['fitstate'] = fitstate 1246 1238 sas_entry.filename = fitstate.file … … 1376 1368 """ 1377 1369 FEET_2 = \ 1378 """<img src="%s"></img> 1379 """ 1380 FEET_2_unix = \ 1381 """<img src="%s" width="540"></img> 1370 """<img src="%s" ></img> 1382 1371 """ 1383 1372 FEET_3 = \
Note: See TracChangeset
for help on using the changeset viewer.