Use the name htmltext on the text object if grouping.

"HTMLBlockText" - if this name is applied to the text object, the text is exported without placing every line in a separate span element see Undocumented and advanced features
Sorry my mistake, thanks for the correction