Author: ltheussl
Date: Fri May 23 07:31:54 2008
New Revision: 659549
URL: http://svn.apache.org/viewvc?rev=659549&view=rev
Log:
Small fix to prevent div's from being swallowed in xdocs.
Modified:
maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java
Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java?rev=659549&r1=659548&r2=659549&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java
Fri May 23 07:31:54 2008
@@ -63,6 +63,7 @@
/** Used to recognize the case of img inside figure. */
private boolean inFigure;
+ // TODO: replace by AttributeSet
/** Decoration properties, eg for texts. */
private String decoration;
@@ -169,6 +170,10 @@
atts.removeAttribute( SinkEventAttributeSet.CLASS );
sink.figure( atts );
}
+ else
+ {
+ visited = false;
+ }
}
/*
* The PRE element tells visual user agents that the enclosed text is
|