summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-03-17 10:59:47 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2024-03-17 10:59:47 -0700
commit9ae7557ac0ac27ee63e8b32aec2bab53b008f72a (patch)
tree44f86520e0eb5d08af895d38464cef9e3fe8fab6 /test
parent2514ad25311a68d8244a77e4bfc4fd6e26b6848e (diff)
Typst writer: omit width/height in images unless explicitly specified.
Previously we computed width/heigth for images that didn't have size information, because otherwise typst would expand the image to fit page width. This typst behavior has changed in 0.11. This change fixes a bug in which images would sometimes overflow page margins, depending on their intrinsic size. Closes #9236.
Diffstat (limited to 'test')
-rw-r--r--test/writer.typst4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/writer.typst b/test/writer.typst
index 3367ee602..6fcf3abe5 100644
--- a/test/writer.typst
+++ b/test/writer.typst
@@ -784,14 +784,14 @@ or here: <http://example.com/>
<images>
From "Voyage dans la Lune" by Georges Melies (1902):
-#figure([#box(width: 150.0pt, image("lalune.jpg"));],
+#figure([#box(image("lalune.jpg"))],
caption: [
lalune
],
kind: auto
)
-Here is a movie #box(width: 20.0pt, image("movie.jpg")) icon.
+Here is a movie #box(image("movie.jpg")) icon.
#horizontalrule