Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jgroszko on github.
  • I am jgroszko (https://keybase.io/jgroszko) on keybase.
  • I have a public key ASAP0pVuEBgsSm1BIKt92sr9DpMlbPmImDsdACicEPO15Qo

To claim this, I am signing this object:

@jgroszko
jgroszko / Application.js
Created August 23, 2013 02:01
A Simple WebGL Framework
/********/
/* Cube */
/********/
var Cube = function(gl, shaderProgram) {
this.gl = gl;
this.shaderProgram = shaderProgram;
var vertexData = [
-1.0, -1.0, 1.0, 0.0, 0.0, 1.0,
1.0, -1.0, 1.0, 0.0, 0.0, 1.0,
diff --git a/mezzanine/utils/html.py b/mezzanine/utils/html.py
index 8084efb..7fb58db 100644
--- a/mezzanine/utils/html.py
+++ b/mezzanine/utils/html.py
@@ -3,6 +3,7 @@ from HTMLParser import HTMLParser, HTMLParseError
from htmlentitydefs import name2codepoint
import re
+SELF_CLOSING_TAGS = ['br', 'img']
diff --git a/mezzanine/utils/html.py b/mezzanine/utils/html.py
index 8084efb..7fb58db 100644
--- a/mezzanine/utils/html.py
+++ b/mezzanine/utils/html.py
@@ -3,6 +3,7 @@ from HTMLParser import HTMLParser, HTMLParseError
from htmlentitydefs import name2codepoint
import re
+SELF_CLOSING_TAGS = ['br', 'img']