Skip to content

Commit

Permalink
Clarify some text about layout modes for inline and block (#1373)
Browse files Browse the repository at this point in the history
* none

* none
  • Loading branch information
chrishtr authored Dec 28, 2024
1 parent e490ccd commit f9c8a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions book/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ from `node.children` (in the HTML tree) and writes to `self.children`
So we have two ways to lay out an element: either calling `recurse`
and `flush`, or this `layout_intermediate` function. To determine
which one a layout object should use, we'll need to know what kind
of content its HTML node contains: text and text-related tags like
`<b>`, or blocks like `<p>` and `<h1>`. That function looks something
like this:
of content its HTML node contains: *inline* text and text-related tags like
`<b>`, or *blocks* like `<p>` and `<h1>`. Let's add a `layout_mode` method
that computes which is which:

``` {.python}
class BlockLayout:
Expand Down

0 comments on commit f9c8a88

Please sign in to comment.