diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-02-25 17:41:09 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-04-05 13:43:18 -0600 |
| commit | d356798f25b0f93e4442e0879f8c511d6023bbe0 (patch) | |
| tree | d18351b6331ed8d1fd595fde9a8ad2b726f460fd /examples | |
| parent | a87db305bb962323f9957b4dd0169bd93baa7be2 (diff) | |
resolves #2003 compute extent of content in scratch document to arrange content block in primary document
* introduce arrange_block helper to handle positioning content block in primary document
* reimplement new dry_run to compute the extent and start position of the content block instead of just the height
* stop rendering at page boundary in scratch document when computing start position of content block to avoid unnecessary work
* ensure that caption stays with start of content block when arranging content block
* prevent arrange_block from starting content block on page when no content from block fits on that page
* avoid converting content that overruns page in AsciiDoc table cell in scratch document
* encapsulate push/pop scratch in arrange_block
* add tests for the arrange_block helper
* prevent nested breakable blocks from flowing beyond first page when performing on single page only
* switch dry_run method to accept keyword arguments
* avoid arrange_block when converting open block when possible
* include negative tests for image taller than page at top of block
* verify borders and backgrounds are not drawn in scratch document
* add test to verify behavior of stop_if_first_page_empty
* include sanity check before drawing background and border over extent
* add rdoc to dry_run and arrange_block help methods
* reuse computed extent as TOC extent
* remove unused code
* raise error if table caption does not fit on single page
* add test that footnotes are not pushed down if height exceeds height of page
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/chronicles-example.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/chronicles-example.adoc b/examples/chronicles-example.adoc index d9bd9fa5..dc8a532c 100644 --- a/examples/chronicles-example.adoc +++ b/examples/chronicles-example.adoc @@ -297,7 +297,7 @@ code { Where could we go without some Java(TM)? Naturally, some autosizing is necessary. -[source%autofit,java] +[source%autofit%unbreakable,java] ---- package org.javaee7.cdi.events; @@ -416,7 +416,7 @@ its breaking point. -[NOTE] +[NOTE%unbreakable] .What happens if there is both a field and a method with the same name? ==== Back to the previous example, suppose that we have both a field and a method with the same name, as in: |
