50 @param selectedText selected text to embed (string) |
50 @param selectedText selected text to embed (string) |
51 @return formatted tag (string) and a flag indicating the acceptance |
51 @return formatted tag (string) and a flag indicating the acceptance |
52 state (boolean) |
52 state (boolean) |
53 """ |
53 """ |
54 dlg = IeCommentDialog() |
54 dlg = IeCommentDialog() |
55 if dlg.exec_() == QDialog.Accepted: |
55 if dlg.exec() == QDialog.Accepted: |
56 condition, version = dlg.getData() |
56 condition, version = dlg.getData() |
57 tag = '[if{0} IE {1}]> {2} <![endif]'.format( |
57 tag = '[if{0} IE {1}]> {2} <![endif]'.format( |
58 condition, version, selectedText) |
58 condition, version, selectedText) |
59 return tag, True |
59 return tag, True |
60 else: |
60 else: |