Changeset 5330be2 in sasview for src/sas/qtgui/Utilities
- Timestamp:
- Jul 31, 2018 6:06:15 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 4453043
- Parents:
- 933f9e9
- git-author:
- Piotr Rozyczko <rozyczko@…> (07/31/18 06:04:46)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (07/31/18 06:06:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/ReportDialog.py
r30bc96eb r5330be2 101 101 102 102 # translate png references into html from base64 string to on-disk name 103 cleanr = re.compile('<img src ="data:image.*>')103 cleanr = re.compile('<img src.*$') 104 104 replacement_name = "" 105 html = self.data_html 105 106 for picture in pictures: 106 107 replacement_name += '<img src="'+ picture + '"><p></p>' 107 108 108 # <img src="data:image/png;.*> => <img src=filename> 109 109 html = re.sub(cleanr, replacement_name, self.data_html)
Note: See TracChangeset
for help on using the changeset viewer.