diff options
| author | Lars Magne Ingebrigtsen | 2010-09-10 19:45:22 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2010-09-10 19:45:22 +0200 |
| commit | 8b620f1169f1da4dd624a9f94c17cce897382682 (patch) | |
| tree | 22fccba73c2591bb6ef3d7e385210251b1baf3a8 /src | |
| parent | 381408e2192b8fd606babaa8c9a103186589d708 (diff) | |
| download | emacs-8b620f1169f1da4dd624a9f94c17cce897382682.tar.gz emacs-8b620f1169f1da4dd624a9f94c17cce897382682.zip | |
Remove some trailing white space.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xml.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -62,7 +62,7 @@ Lisp_Object make_dom (xmlNode *node) | |||
| 62 | 62 | ||
| 63 | if (node->content) | 63 | if (node->content) |
| 64 | content = build_string (node->content); | 64 | content = build_string (node->content); |
| 65 | 65 | ||
| 66 | return Fcons (intern (node->name), content); | 66 | return Fcons (intern (node->name), content); |
| 67 | } else | 67 | } else |
| 68 | return Qnil; | 68 | return Qnil; |
| @@ -76,21 +76,21 @@ parse_buffer (Lisp_Object string, Lisp_Object base_url, int htmlp) | |||
| 76 | Lisp_Object result; | 76 | Lisp_Object result; |
| 77 | int ibeg, iend; | 77 | int ibeg, iend; |
| 78 | char *burl = ""; | 78 | char *burl = ""; |
| 79 | 79 | ||
| 80 | LIBXML_TEST_VERSION; | 80 | LIBXML_TEST_VERSION; |
| 81 | 81 | ||
| 82 | CHECK_STRING (string); | 82 | CHECK_STRING (string); |
| 83 | 83 | ||
| 84 | if (! NILP (base_url)) { | 84 | if (! NILP (base_url)) { |
| 85 | CHECK_STRING (base_url); | 85 | CHECK_STRING (base_url); |
| 86 | burl = SDATA (base_url); | 86 | burl = SDATA (base_url); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | if (htmlp) | 89 | if (htmlp) |
| 90 | doc = htmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", | 90 | doc = htmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", |
| 91 | HTML_PARSE_RECOVER|HTML_PARSE_NONET| | 91 | HTML_PARSE_RECOVER|HTML_PARSE_NONET| |
| 92 | HTML_PARSE_NOWARNING|HTML_PARSE_NOERROR); | 92 | HTML_PARSE_NOWARNING|HTML_PARSE_NOERROR); |
| 93 | else | 93 | else |
| 94 | doc = xmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", | 94 | doc = xmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", |
| 95 | XML_PARSE_NONET|XML_PARSE_NOWARNING| | 95 | XML_PARSE_NONET|XML_PARSE_NOWARNING| |
| 96 | XML_PARSE_NOERROR); | 96 | XML_PARSE_NOERROR); |
| @@ -99,11 +99,11 @@ parse_buffer (Lisp_Object string, Lisp_Object base_url, int htmlp) | |||
| 99 | node = xmlDocGetRootElement (doc); | 99 | node = xmlDocGetRootElement (doc); |
| 100 | if (node != NULL) | 100 | if (node != NULL) |
| 101 | result = make_dom (node); | 101 | result = make_dom (node); |
| 102 | 102 | ||
| 103 | xmlFreeDoc (doc); | 103 | xmlFreeDoc (doc); |
| 104 | xmlCleanupParser (); | 104 | xmlCleanupParser (); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | return result; | 107 | return result; |
| 108 | } | 108 | } |
| 109 | 109 | ||