]> git.scottworley.com Git - paperdoorknob/commitdiff
wrapfigure 0pt width means auto-scale
authorScott Worley <scottworley@scottworley.com>
Thu, 21 Dec 2023 07:43:28 +0000 (23:43 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 21 Dec 2023 07:43:28 +0000 (23:43 -0800)
glowfic.py

index a4f3ca9b2e24eb5707c86cd3b03d1dc64db83bb6..7a9f82aaf40e248b3c9806176da26a91e05cc26f 100644 (file)
@@ -109,8 +109,7 @@ class BelowIconLayout(Layout):
         self._image_size = image_size
 
     def renderChunk(self, chunk: Chunk) -> bytes:
         self._image_size = image_size
 
     def renderChunk(self, chunk: Chunk) -> bytes:
-        icon_width = b'0.25\\textwidth'  # TODO: Make this configurable
-        return b'''\\begin{wrapfigure}{l}{%s}
+        return b'''\\begin{wrapfigure}{l}{0pt}
 %s
 
 %s
 %s
 
 %s
@@ -123,7 +122,6 @@ class BelowIconLayout(Layout):
 %s
 
 ''' % (
 %s
 
 ''' % (
-            icon_width,
             renderIcon(chunk.icon, self._image_size),
             chunk.character.encode('UTF-8') if chunk.character else b'',
             chunk.screen_name.encode('UTF-8') if chunk.screen_name else b'',
             renderIcon(chunk.icon, self._image_size),
             chunk.character.encode('UTF-8') if chunk.character else b'',
             chunk.screen_name.encode('UTF-8') if chunk.screen_name else b'',