]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
renders word are to xml
authorKeiron Liddle <keiron@apache.org>
Fri, 8 Feb 2002 08:25:08 +0000 (08:25 +0000)
committerKeiron Liddle <keiron@apache.org>
Fri, 8 Feb 2002 08:25:08 +0000 (08:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194630 13f79535-47bb-0310-9956-ffa450edef68

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

index 206fcf67afb7b42d6b26f9c07bfb4da6174617b7..5689c8dfe55f8442f6f1b8543aabde3481bc8287 100644 (file)
@@ -338,6 +338,16 @@ public class XMLRenderer extends AbstractRenderer {
         writeElement("<space width=\"" + space.getWidth() + "\"/>");
     }
 
+    public void renderWord(Word word) {
+        String prop = "";
+        List list = word.getPropertyList();
+        if (list != null) {
+            prop = " props=\"" + getPropString(list) + "\"";
+        }
+        writeElement("<word" + prop + ">" + word.getWord() + "</word>");
+        super.renderWord(word);
+    }
+
     public void renderLeader(Leader area) {
         String style = "solid";
         switch (area.getRuleStyle()) {