Skip to content

Commit 235bc4b

Browse files
author
Kyle Maxwell
committed
happy with nth child (passing) [0.704292]
1 parent df93711 commit 235bc4b

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,4 @@ check-am:
6161
@echo "reddit..."; ./parsley test/reddit.let test/reddit.html 2>&1 | diff test/reddit.json - && echo " success."
6262
@echo "div..."; ./parsley test/div.let test/div.html 2>&1 | diff test/div.json - && echo " success."
6363
@echo "default-namespace..."; ./parsley -x test/default-namespace.let test/default-namespace.xml 2>&1 | diff test/default-namespace.json - && echo " success."
64-
@echo "sg-wrap..."; ./parsley test/sg-wrap.let test/sg-wrap.html 2>&1 | diff test/sg-wrap.json - && echo " success."
65-
@echo "array-regression..."; ./parsley test/array-regression.let test/array-regression.html 2>&1 | diff test/array-regression.json - && echo " success."
64+
@echo "sg-wrap..."; ./parsley test/sg-wrap.let test/sg-wrap.html 2>&1 | diff test/sg-wrap.json - && echo " success."

Makefile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ check-am:
762762
@echo "div..."; ./parsley test/div.let test/div.html 2>&1 | diff test/div.json - && echo " success."
763763
@echo "default-namespace..."; ./parsley -x test/default-namespace.let test/default-namespace.xml 2>&1 | diff test/default-namespace.json - && echo " success."
764764
@echo "sg-wrap..."; ./parsley test/sg-wrap.let test/sg-wrap.html 2>&1 | diff test/sg-wrap.json - && echo " success."
765-
@echo "array-regression..."; ./parsley test/array-regression.let test/array-regression.html 2>&1 | diff test/array-regression.json - && echo " success."
766765
# Tell versions [3.59,3.63) of GNU make to not export all variables.
767766
# Otherwise a system limit (for SysV at least) may be exceeded.
768767
.NOEXPORT:

test/crash.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Parsing failed: /result/url was empty
1+
Parsing failed: /result was empty

test/sg-wrap.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<html>
22
<body>
3-
<p><b>Hello</b> world!</p>
3+
<p> <b>Hello</b> world!</p>
44
</body>
55
</html>

util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ xmlDocPtr
3636
parsley_apply_span_wrap(xmlDocPtr doc) {
3737
if(span_wrap_sheet == NULL) {
3838
char * sheet = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:sg=\"http://selectorgadget.com/\"> \
39-
<xsl:template match=\"text()[following-sibling::* or preceding-sibling::*]\"> \
39+
<xsl:template match=\"text()[(following-sibling::* or preceding-sibling::*) and normalize-space(.) != '']\"> \
4040
<sg_wrap><xsl:value-of select=\".\" /></sg_wrap> \
4141
</xsl:template> \
4242
<xsl:template match=\"@*|node()\"> \

0 commit comments

Comments
 (0)