#6 Overriding inline-ness of images by :align: attribute

closed-rejected
nobody
None
4
2003-09-23
2003-09-22
Cherniavsky Beni
No

Only with substitutions you can make some useful things
like adding a link, but with substitutions you are
forced to produce an inline image. Here is a partial
solution. If an image has an ``:align:`` attribute
that makes no sense because it specifies horizontal
alignment for inline images or vice-versa, I think it's
more useful to flip the inline-ness of the image
instead of ignoring it. The patch implements it.

Discussion

  •  
    Attachments
  • David Goodger
    David Goodger
    2003-09-23

    • status: open --> closed-rejected
     
  • David Goodger
    David Goodger
    2003-09-23

    Logged In: YES
    user_id=7733

    This doesn't make much sense to me. It "smells bad". It
    seems to be
    a roundabout way of abusing a semi-exceptional case for
    dubious gain.
    If a document specifying horizontal alignment for inline
    images is so
    bad, Docutils should complain, not arbitrarily change the
    document.

    How would the "or vice-versa" case (vertical alignment for
    standalone
    images, I guess) work anyway? Where would the inline image
    go? For
    that matter, where would the standalone image (converted from an
    inline image with horizonal alignment) go, before or after
    the text it
    came from? What about such an inline image inside a title,
    where
    would the standalone image go?