[Pkg-mozext-commits] [sage-extension] 42/49: [15767] handle tags with multiple opening brackets

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.

commit f3edc743d8c70c016051474b3d14b9eb457ce9d1
Author: Peter Andrews <petea at jhu.edu>
Date:   Fri Nov 17 18:03:38 2006 +0000

    [15767] handle tags with multiple opening brackets
---
 src/sage/content/simplehtmlparser.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sage/content/simplehtmlparser.js b/src/sage/content/simplehtmlparser.js
index 572f3f3..c3f2e82 100644
--- a/src/sage/content/simplehtmlparser.js
+++ b/src/sage/content/simplehtmlparser.js
@@ -53,7 +53,7 @@ SimpleHtmlParser.prototype = {
 
 	// regexps
 
-	startTagRe:	/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,
+	startTagRe:	/^<([^<>\s\/]+)((\s+[^=<>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,
 	endTagRe:	/^<\/([^>\s]+)[^>]*>/m,
 	attrRe:		/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,
 
@@ -114,7 +114,7 @@ SimpleHtmlParser.prototype = {
 			if (treatAsChars) {
 				index = s.indexOf("<");
 				if (index == -1) {
-					 this.contentHandler.characters(s);
+					this.contentHandler.characters(s);
 					s = "";
 				} else {
 					if (index == 0) {	// in case we got a < in the character stream

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list