def write(self, viewer, settings, selectionOnly=False, separateCSS=False, columns=None): cssFilename = os.path.basename(self.__cssFilename) if separateCSS else '' htmlText, count = generator.viewer2html(viewer, settings, cssFilename, selectionOnly, columns) self.__fd.write(htmlText) if separateCSS: self._writeCSS() return count
def write(self, viewer, selectionOnly=False): htmlText = generator.viewer2html(viewer, selectionOnly) self.__fd.write(htmlText)
def write(self, viewer, settings, selectionOnly=False): cssFilename = os.path.basename(self.__cssFilename) htmlText, count = generator.viewer2html(viewer, settings, cssFilename, selectionOnly) self.__fd.write(htmlText) self._writeCSS() return count