pub fn generate(mut self) -> String {
        open_table(&mut self.html);

        for (i, line) in LinesWithEndings::from(self.code).enumerate() {
            open_row(&mut self.html, i);
            if self.max_line_len.map_or(false, |n| line.len() > n) {
                self.write_escaped_html(&line);
            } else {
                self.write_spans_for_line(&line);
            }
            close_row(&mut self.html);
        }

        close_table(&mut self.html);
        self.html
    }
// generate takes ownership of self so that it can't be re-used
generate takes ownership of self so that it can't be re-used
generate takes ownership of self so that it can ' t be re - used
pub fn generate(mut self) -> String {
        open_table(&mut self.html);
        for (i, line) in LinesWithEndings::from(self.code).enumerate() {
            open_row(&mut self.html, i);
            if self.max_line_len.map_or(false, |n| line.len() > n) {
                self.write_escaped_html(&line);
            } else {
                self.write_spans_for_line(&line);
            }
            close_row(&mut self.html);
        }
        close_table(&mut self.html);
        self.html
    }
pub fn generate ( mut self ) -> String { open_table ( & mut self . html ) ; for ( i , line ) in LinesWithEndings :: from ( self . code ) . enumerate ( ) { open_row ( & mut self . html , i ) ; if self . max_line_len . map_or ( false , | n | line . len ( ) > n ) { self . write_escaped_html ( & line ) ; } else { self . write_spans_for_line ( & line ) ; } close_row ( & mut self . html ) ; } close_table ( & mut self . html ) ; self . html }
generate takes ownership of self so that it can't be re-used
generate takes ownership of self so that it can ' t be re - used
mut self
mut self