You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3502858
Browse filesBrowse the repository at this point in the historyBrowse files
/// Finalize an open HTML element, attaching its generated content to the current container.
842
+
/// Finalize an open HTML element popped from the stack.
843
+
///
844
+
/// Side effects:
845
+
/// - Flushes any buffered inline text into the current block container.
846
+
/// - Sets `pending_page_break` if the element requests page break before or after.
847
+
/// - For `Cell`: pops the cell container, attaches generated blocks to the cell, and pushes into the active row.
848
+
/// - For `Tr`: commits any pending `<colgroup>` definitions and pushes the completed row into the active table.
849
+
/// - For `Table`: commits pending colgroup widths, finalizes table rows with `insert_covered` (bounded to `MAX_ROWS`),
850
+
/// resolves explicit column widths from colgroups/cells, and appends the resulting table to the enclosing container.
848
851
fnclose(&mutself,e:&El){
849
852
if e.page_break_after || e.page_break{
850
853
self.pending_page_break = true;
@@ -1004,7 +1007,14 @@ impl<'r> Builder<'r> {
1004
1007
}
1005
1008
}
1006
1009
1007
-
/// Handle void or special elements such as `br`, `hr`, `col`, `colgroup`, or `img`.
1010
+
/// Process void or special HTML elements (`br`, `hr`, `wbr`, `col`, `colgroup`, `img`).
1011
+
///
1012
+
/// Side effects:
1013
+
/// - `br` / `wbr`: inserts line break or zero-width break into the active paragraph.
1014
+
/// - `hr`: inserts a thematic horizontal rule block with borders and spacing into the container.
1015
+
/// - `col`: extracts span and explicit CSS width, resolves against active `<colgroup>`, and appends up to `MAX_TABLE_COLS` column widths to the table.
1016
+
/// - `colgroup`: commits any previous pending colgroup and buffers new span and width styles until child cols or closing tag arrive.
1017
+
/// - `img`: parses dimensions, styles, and data/remote sources, creating an image block or inline image run.
0 commit comments