def _cleanupMsOffice(self, xhtmlString):
     bOk = True
     if xhtmlutil.hasMsOfficeMarkup(xhtmlString):            
         try:
             xhtmlString = xhtmlutil.cleanUpMsOfficeMarkup(xhtmlString)
             self._addMessage(ZXhtmlValidationMessage.INFO,-1, -1, u"Applied MS Office cleanup.")  #$NON-NLS-1$
         except:
             bOk = False
             self._addMessage(ZXhtmlValidationMessage.INFO,-1, -1, u"Failed cleaning up MS Office namespace markup.")  #$NON-NLS-1$
     return (bOk, xhtmlString)
Beispiel #2
0
 def _cleanupMsOffice(self, xhtmlString):
     bOk = True
     if xhtmlutil.hasMsOfficeMarkup(xhtmlString):
         self.messages.append(u"Attempting to cleanup MS Office namespace markup.")  #$NON-NLS-1$
         try:
             xhtmlString = xhtmlutil.cleanUpMsOfficeMarkup(xhtmlString)
         except:
             bOk = False
             self.messages.append(u"Failed cleaning up MS Office namespace markup.")  #$NON-NLS-1$
     return (bOk, xhtmlString)
Beispiel #3
0
 def _cleanupMsOffice(self, xhtmlString):
     bOk = True
     if xhtmlutil.hasMsOfficeMarkup(xhtmlString):
         self.messages.append(
             u"Attempting to cleanup MS Office namespace markup."
         )  #$NON-NLS-1$
         try:
             xhtmlString = xhtmlutil.cleanUpMsOfficeMarkup(xhtmlString)
         except:
             bOk = False
             self.messages.append(
                 u"Failed cleaning up MS Office namespace markup."
             )  #$NON-NLS-1$
     return (bOk, xhtmlString)
Beispiel #4
0
 def _cleanupMsOffice(self, xhtmlString):
     bOk = True
     if xhtmlutil.hasMsOfficeMarkup(xhtmlString):
         try:
             xhtmlString = xhtmlutil.cleanUpMsOfficeMarkup(xhtmlString)
             self._addMessage(ZXhtmlValidationMessage.INFO, -1, -1,
                              u"Applied MS Office cleanup.")  #$NON-NLS-1$
         except:
             bOk = False
             self._addMessage(
                 ZXhtmlValidationMessage.INFO, -1, -1,
                 u"Failed cleaning up MS Office namespace markup."
             )  #$NON-NLS-1$
     return (bOk, xhtmlString)