File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed
Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff 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."
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 1- Parsing failed: /result/url was empty
1+ Parsing failed: /result was empty
Original file line number Diff line number Diff line change 11< html >
22 < body >
3- < p > < b > Hello</ b > world!</ p >
3+ < p > < b > Hello</ b > world!</ p >
44 </ body >
55</ html >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ xmlDocPtr
3636parsley_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()\"> \
You can’t perform that action at this time.
0 commit comments