Make the lint script detect more \text{} nodes

If there was more than one text segment in the node, xpath's 'contains'
method would only check the first one, not all of them. This does it
manually using python.

Auditors: john, csilvers