mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-06 21:55:00 +00:00
Wrap some long lines; the AS/400 requires line length <= 80
characters.
This commit is contained in:
parent
5b85b08976
commit
ed0cbdbd05
1 changed files with 6 additions and 2 deletions
|
@ -3672,7 +3672,9 @@ doProlog(XML_Parser parser,
|
|||
otherwise call the skipped entity handler
|
||||
*/
|
||||
if (prologState.documentEntity &&
|
||||
(dtd.standalone ? !openInternalEntities : !dtd.hasParamEntityRefs)) {
|
||||
(dtd.standalone
|
||||
? !openInternalEntities
|
||||
: !dtd.hasParamEntityRefs)) {
|
||||
if (!entity)
|
||||
return XML_ERROR_UNDEFINED_ENTITY;
|
||||
else if (!entity->is_internal)
|
||||
|
@ -4081,7 +4083,9 @@ appendAttributeValue(XML_Parser parser, const ENCODING *enc, XML_Bool isCdata,
|
|||
#ifdef XML_DTD
|
||||
prologState.documentEntity &&
|
||||
#endif /* XML_DTD */
|
||||
(dtd.standalone ? !openInternalEntities : !dtd.hasParamEntityRefs);
|
||||
(dtd.standalone
|
||||
? !openInternalEntities
|
||||
: !dtd.hasParamEntityRefs);
|
||||
else /* if (pool == &tempPool): we are called from content */
|
||||
checkEntityDecl = !dtd.hasParamEntityRefs || dtd.standalone;
|
||||
if (checkEntityDecl) {
|
||||
|
|
Loading…
Add table
Reference in a new issue