This commit is contained in:
Kovid Goyal 2007-05-16 18:35:24 +00:00
parent 5d656c2ec8
commit ee4052cfdc
3 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@
<h2><a name='images'>Inline images</a></h2>
<p>
Here I demonstrate the use of inline images in the midst of text. Here is a small image <img src='small.jpg' /> embedded in a sentence. Now we have a slightly larger image that is automatically put in its own block <img style="text-align:center" src='medium.jpg' /> and finally we have a large image which wont fit on this page. Try changing sizes from S to M to L and see how the images behave. <img src='large.jpg' />
Here I demonstrate the use of inline images in the midst of text. Here is a small image <img src='small.jpg' /> embedded in a sentence. Now we have a slightly larger image that is automatically put in its own block <img style="text-align:center" src='medium.jpg' /> and finally we have a large image which wont fit on this page. Try changing sizes from S to M to L and see how the images behave. <img align='center' src='large.jpg' />
</p>
<p class='toc'>
<hr />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -259,7 +259,7 @@ class LrsContainer(object):
if child.has_text():
return True
for item in self.contents:
if isinstance(item, Plot):
if isinstance(item, (Plot, ImageBlock)):
return True
return False