[xep-support] whitespace around links

Nikolai Grigoriev grig at renderx.com
Mon Feb 4 11:43:49 PST 2002


Edward,

> when i send fo: like this to renderx:
> <fo:basic-link text-decoration="underline" external-destination="url('xxx')">
>      <fo:external-graphic ..../>
> </fo:basic-link>
>
> the graphic is rendered with underlined space around it.

How could it be otherwise? Here's the procedure:

- your fo:external-graphic element is surrounded by blank characters
  (spaces and newlines);
- these are converted to single spaces by effect of  'white-space-treatment'
  and 'white-space-collapse' attributes;
- these spaces get  text-decoration="underline" as specified on the
   surrounding inline.

> however if i put the above fo on one line (i.e. no whitespace between the
basic-link
> element and the external-graphic element), then the extra space goes away.

Yes, because there is no space at all.

> this seems to be a bug in renderx, which should not be treating
> that whitespace significantly.

Do you mean that a single space  should not get touched by underscoring?
I don't find anything in the spec to justify such behaviour.

> or is there a way to signal to renderx to ignore whitespace, like the
> <xsl:strip-space elements="*"/> or somesuch element in xslt?

Yes, 'white-space-treatment' attribute serves for this purpose:

   <fo:basic-link white-space-treatment="ignore" ...

Best regards,

Nikolai Grigoriev
RenderX

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list