You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/05/24 21:25:36 UTC
cvs commit: xml-xalan/c/src/XMLSupport FormatterToHTML.cpp FormatterToHTML.hpp
dbertoni 00/05/24 12:25:36
Modified: c/src/XMLSupport FormatterToHTML.cpp FormatterToHTML.hpp
Log:
Write numeric character references as decimal instead of hex.
Revision Changes Path
1.18 +4 -5 xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp
Index: FormatterToHTML.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- FormatterToHTML.cpp 2000/05/18 18:37:23 1.17
+++ FormatterToHTML.cpp 2000/05/24 19:25:33 1.18
@@ -55,7 +55,7 @@
* <http://www.apache.org/>.
*/
/**
- * $Id: FormatterToHTML.cpp,v 1.17 2000/05/18 18:37:23 dbertoni Exp $
+ * $Id: FormatterToHTML.cpp,v 1.18 2000/05/24 19:25:33 dbertoni Exp $
*
* $State: Exp $
*
@@ -407,6 +407,7 @@
m_currentElementName = nameUpper;
accum('<');
+
accum(name);
const unsigned int nAttrs = attrs.getLength();
@@ -812,8 +813,7 @@
accum('&');
accum('#');
- accum('x');
- accum(UnsignedLongToHexDOMString(next));
+ accum(UnsignedLongToDOMString(next));
accum(';');
}
else if(ch >= 160 && ch <= 255)
@@ -861,8 +861,7 @@
{
accum('&');
accum('#');
- accum('x');
- accum(UnsignedLongToHexDOMString(ch));
+ accum(UnsignedLongToDOMString(ch));
accum(';');
}
}
1.9 +7 -3 xml-xalan/c/src/XMLSupport/FormatterToHTML.hpp
Index: FormatterToHTML.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToHTML.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- FormatterToHTML.hpp 2000/05/18 18:37:23 1.8
+++ FormatterToHTML.hpp 2000/05/24 19:25:34 1.9
@@ -58,7 +58,7 @@
#define FORMATTERTOHTML_HEADER_GUARD_1357924680
/**
- * $Id: FormatterToHTML.hpp,v 1.8 2000/05/18 18:37:23 dbertoni Exp $
+ * $Id: FormatterToHTML.hpp,v 1.9 2000/05/24 19:25:34 dbertoni Exp $
*
* $State: Exp $
*
@@ -99,6 +99,11 @@
public:
+ enum eDummy
+ {
+ eDefaultIndentAmount = 4
+ };
+
/**
* Constructor for customized encoding and doctype.
* @param writer The character output stream to use.
@@ -113,7 +118,7 @@
const XalanDOMString& doctypeSystem = XalanDOMString(),
const XalanDOMString& doctypePublic = XalanDOMString(),
bool doIndent = true,
- int indent = 4,
+ int indent = eDefaultIndentAmount,
const XalanDOMString& version = XalanDOMString(),
const XalanDOMString& standalone = XalanDOMString(),
bool xmlDecl = false);
@@ -121,7 +126,6 @@
virtual
~FormatterToHTML();
-
// These methods are inherited from DocumentHandler ...
virtual void