Commit f8a451fd authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added line feed as another possible heartbeat character.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3230 b35dd754-fafc-0310-a699-88a17e54d16e
parent bc14a661
......@@ -17,8 +17,8 @@ import org.xmlpull.v1.XmlPullParser;
import java.io.IOException;
/**
* MXParser that returns an IGNORABLE_WHITESPACE event when a whitespace character is received.
* This parser is useful when not validating documents.
* MXParser that returns an IGNORABLE_WHITESPACE event when a whitespace character or a
* line feed is received. This parser is useful when not validating documents.
*
* @author Gaston Dombiak
*/
......@@ -256,7 +256,7 @@ public class MXParser extends org.xmlpull.mxp1.MXParser {
do {
// check that ]]> does not show in
if (eventType == XmlPullParser.END_TAG && ch == ' ') {
if (eventType == XmlPullParser.END_TAG && (ch == ' ' || ch == '\n')) {
// ** ADDED CODE (INCLUDING IF STATEMENT)
return IGNORABLE_WHITESPACE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment