- commit
- 0a58c4cb6a54a1c42423040152bf8c5416d2a7a1
- parent
- 4aac6f0cffb08a76f8f7abd230ca1c840815670f
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-02-20 07:00
sort attributes (for consistent output)
Diffstat
| M | simplecharts.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/simplecharts.py b/simplecharts.py
@@ -37,7 +37,7 @@ class BaseRenderer: 37 37 def attrs(self, **kwargs): 38 38 return ''.join( 39 39 ' {}="{}"'.format(key.replace('_', '-'), escape(str(value)))40 -1 for key, value in kwargs.items()-1 40 for key, value in sorted(kwargs.items()) 41 41 ) 42 42 43 43 def element(self, tag, content=None, **attrs):