﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22088	XML deserializer strips leading whitespace on loaddata	Joseph-django@…		"If an object instance has a character field and the value of that field starts with the tab character, loaddata removes that tab character when the loaded fixture is in XML format. 

Note that the XML dump data does not strip this leading tab character. Also note that both the JSON dump and load data preserve the tab character. 


I have not tested this with other whitespace characters. This can be easily reproduced by creating a simple model:


{{{
class Foobar(models.model)
  name = models.CharField(max_length=20)
}}}

And then creating an instance of that model (e.g, in Django Shell) with a name value of, e.g, `""\tBaz""` and then using the manage.py dumpdata with `--format=xml`. 

Once the fixture has been generated, remove the existing instance (either by deleting it, or flushing the app data, or your preferred method) and then using manage.py loaddata to load the fixture. Note the instance's name no longer contains the tab character. "	Bug	new	Core (Serialization)	1.6	Normal		xml deserialization	numerodix@…	Accepted	0	0	0	0	0	0
