Changeset 47c44f0 in sasview for src/sas/sascalc
- Timestamp:
- Apr 9, 2018 4:07:25 AM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
- Children:
- 3b070a0
- Parents:
- a8e368b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/pagestate.py
ra8e368b r47c44f0 646 646 name = value.split(':', 1)[1].strip() 647 647 file_value = "File name:" + name 648 if len(file_value) > 50: 649 file_value = "File name:.."+file_value[-40:] 648 #Truncating string so print doesn't complain of being outside margins 649 if sys.platform != "win32": 650 MAX_STRING_LENGHT = 50 651 if len(file_value) > MAX_STRING_LENGHT: 652 file_value = "File name:.."+file_value[-MAX_STRING_LENGHT+10:] 650 653 file_name = CENTRE % file_value 651 654 if len(title) == 0: … … 723 726 html_str, text_str, title = self._get_report_string() 724 727 # Allow 2 figures to append 725 image_links = [FEET_2%fig for fig in fig_urls] 726 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] 727 733 # final report html strings 728 734 report_str = html_str + ELINE.join(image_links) … … 1372 1378 """<img src="%s" width="540"></img> 1373 1379 """ 1380 FEET_2_unix = \ 1381 """<img src="%s" width="540"></img> 1382 """ 1374 1383 FEET_3 = \ 1375 1384 """</center>
Note: See TracChangeset
for help on using the changeset viewer.