Skip to content

Commit cb30cc8

Browse files
committed
Factor out the dump-rewrite sed script since creating pretty-printed
xml fixtures in general is a useful thing to do. - Legacy-Id: 817
1 parent 63c532a commit cb30cc8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/bin/pretty-xml-dump

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
python manage.py dumpdata --format=xml "$@" | sed -e 's/<\/*object/\
3+
&/g' -e 's/<field/\
4+
&/g' -e 's/<\/django-objects/\
5+
&/g'

0 commit comments

Comments
 (0)