mikeboers / PyHAML

Pythonic implementation of HAML, cross compiling to Mako template syntax.
BSD 3-Clause "New" or "Revised" License
97 stars 13 forks source link

Doctype !!! 5 #11

Closed PopovGena closed 12 years ago

PopovGena commented 13 years ago

Doctype !!! 5 - doesn't work/

KeyError: u'5'

mikeboers commented 13 years ago

While not entirely obvious, it will work if you do:

!!! XML
!!! 5

Cleaning up the doctypes (with reasonable errors, and more documentation, etc.) is something that needs working on. I'm going to leave this issue open for the time being.

jdinunzio commented 12 years ago

One possibility to solve this issue is: In nodes.py: Doctype.doctypes: move the item "5": """<!DOCTYPE html>""" from the dict 'xml' to the dict 'html'.

mikeboers commented 12 years ago

This is finally fixed on the master branch. Sorry for taking so long! I was holding out for a massive redesign of the doctypes system that I have not had time to implement.