pt_element: instead of composing ec class for each span in a term, compose it once (as class_nl, formerly pre_class) and use it repeatedly. Doesn't save any time, but code is more readable.
Would it save significant time to include "<span class=" in class_nl?