dskinner / damsel-python

Markup Language featuring html outlining via css-selectors, embedded python, and extensibility.
MIT License
43 stars 3 forks source link

Colon Crashes Label Tag #22

Closed ghost closed 12 years ago

ghost commented 12 years ago

Awesome job with this.

If you include the character ':' after some text in a label tag dmsl crashes.

%label[for="someid"] Url

is okay but

%label[for="someid"] Url:

causes dmsl to throw the error => IndexError('list index out of range',)

dskinner commented 12 years ago

aah lame, this is probably bad logic in the _pre.py for catching inline python statements. I'll try and get a fix for this in for this tonight.

dskinner commented 12 years ago

There's actually two separate errors at play here under differing circumstances so last commit only resolves one of them..

dskinner commented 12 years ago

Thanks for the report, if you pull down the latest from git here, the issue should be resolved.

ghost commented 12 years ago

You fucking rock.