Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

capitalization fail ? #49

Closed
kranius opened this Issue · 2 comments

3 participants

Guillaume Daniel Will Milton Michael Robinson
Guillaume Daniel

Hello,

simple expansion such as :

groupId{foobar}

will give :

groupid>foobar</groupid>

Case isn't kept.

Any tips on this ?

Will Milton

The problem is here: https://github.com/rstacruz/sparkup/blob/master/sparkup.py#L847

I understand that all html elements are lowercase, but I don't understand how anyone would accidentally type them uppercase.

If we want to support xml as a dialect, then shouldn't we just allow the user to set the case of the element characters however they want?

A slight advantage would be to allow more and more xml dialects where html for example would compare your tag to a dictionary of supported elements, and perhaps help syntastic warn you, and similar for Ant or Maven files or Apache config files.

In any case, random xml can have a tag named whatever, so I'd like that to be supported first.

Michael Robinson
Collaborator

There is a good possibility that you will be the only one using this plugin who wants this feature.

We accept pull requests.

Michael Robinson faceleg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.