projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55fdfbb
)
Try to reduce splitting of text nodes
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 Sep 2013 11:58:43 +0000
(13:58 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 Sep 2013 11:58:43 +0000
(13:58 +0200)
src/html_parser.cpp
patch
|
blob
|
history
diff --git
a/src/html_parser.cpp
b/src/html_parser.cpp
index
abbdeba
..
1a403d4
100644
(file)
--- a/
src/html_parser.cpp
+++ b/
src/html_parser.cpp
@@
-264,8
+264,7
@@
void mp::HTMLParser::Rep::parse_str(HTMLParserEvent &event, const char *cp)
else if (*cp == '/' && isAlpha(cp[1]))
{
int i;
- tagText(event, text_start, cp - 1);
-
+
i = skipName(++cp);
if (!nest)
@@
-274,10
+273,10
@@
void mp::HTMLParser::Rep::parse_str(HTMLParserEvent &event, const char *cp)
nest = true;
else
{
- text_start = cp - 1; // points to '/'
continue;
}
}
+ tagText(event, text_start, cp - 2);
event.closeTag(cp, i);
if (m_verbose)
printf("------ tag close %.*s\n", i, cp);