]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Block height/width elaboration for XML Renderer--Patch by Finn Bock.
authorGlen Mazza <gmazza@apache.org>
Tue, 20 Jan 2004 01:52:51 +0000 (01:52 +0000)
committerGlen Mazza <gmazza@apache.org>
Tue, 20 Jan 2004 01:52:51 +0000 (01:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197222 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/xml/XMLRenderer.java

index 31e06437c9320a737cc6ed388db166b6671fba6e..57737a9c2635d8ad848b584746263e9378b4b9a7 100644 (file)
@@ -366,10 +366,11 @@ public class XMLRenderer extends AbstractRenderer {
      * @see org.apache.fop.render.AbstractRenderer#renderBlock(Block)
      */
     protected void renderBlock(Block block) {
-        String prop = "";
+        String prop = " width=\"" + block.getWidth() + 
+                      "\" height=\"" + block.getHeight() + "\"";
         Map map = block.getTraits();
         if (map != null) {
-            prop = " props=\"" + getPropString(map) + "\"";
+            prop = prop + " props=\"" + getPropString(map) + "\"";
         }
         writeStartTag("<block" + prop + ">");
         super.renderBlock(block);