Author: ltheussl
Date: Wed May 20 12:56:20 2009
New Revision: 776682
URL: http://svn.apache.org/viewvc?rev=776682&view=rev
Log:
Use width and height instead of content-width/content-height in case of user
settings.
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoSink.java
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoSink.java
URL:
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoSink.java?rev=776682&r1=776681&r2=776682&view=diff
==============================================================================
---
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoSink.java
(original)
+++
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoSink.java
Wed May 20 12:56:20 2009
@@ -625,12 +625,12 @@
if ( attributes != null && attributes.isDefined(
SinkEventAttributes.WIDTH ) )
{
- atts.addAttribute( "content-width", attributes.getAttribute(
SinkEventAttributes.WIDTH ) );
+ atts.addAttribute( "width", attributes.getAttribute(
SinkEventAttributes.WIDTH ) );
}
if ( attributes != null && attributes.isDefined(
SinkEventAttributes.HEIGHT ) )
{
- atts.addAttribute( "content-height", attributes.getAttribute(
SinkEventAttributes.HEIGHT ) );
+ atts.addAttribute( "height", attributes.getAttribute(
SinkEventAttributes.HEIGHT ) );
}
writeln( "<fo:external-graphic" + SinkUtils.getAttributeString( atts )
+ "/>" );