Changeset 4987 for trunk/GSASIIctrlGUI.py
- Timestamp:
- Jul 2, 2021 2:20:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r4979 r4987 2797 2797 self.addRows = addRows 2798 2798 self.size = size 2799 self.hlp = StripIndents(hlp,True)2799 self.hlp = hlp 2800 2800 self.lbl = lbl 2801 2801 self.CenterOnParent() … … 5601 5601 When singleLine is True, all newline are removed, but inserting "%%" 5602 5602 into the string will cause a blank line to be inserted at that point 5603 and %t% will generate a new line and tab (to indent a line) 5603 5604 5604 5605 :param str msg: a string containing one or more lines of text. 5605 5606 spaces or tabs following a newline are removed. 5607 :param bool singleLine: removes all newlines from the msg so that 5608 the text may be wrapped. 5606 5609 :returns: the string but reformatted 5607 5610 ''' … … 5622 5625 msg1 = msg1.replace(' ',' ') 5623 5626 msg = msg.replace('%%','\n\n') 5627 msg = msg.replace('%t%','\n\t') 5624 5628 return msg 5625 5629
Note: See TracChangeset
for help on using the changeset viewer.