robbiehanson/XMPPFramework — pull request #271 by bmatasar (2013-11-13 23:42:05+00:00)
Title: When language is nil retrieve the <body> element with no xml:lang attribute

ObjColumnist,

your formatting changed the meaning of the code.

I expected ````- (NSString *)bodyForLanguage:(NSString *)language```` to return the ````

```` element with no ````xml:lang```` attribute, whereas your code retrieves the first body, possibly missing the correct one (for instance, the message contains ````

Bonjour

Hello

```` and I am not able to retrieve the second body which is the default one).