The style creation for inline elements (tt:span) includes the style attribute tts:textAlign.
The attribute tts:textAlign applies only to tt:p elements but not to tt:span elements. Therefore no distinction of text alignment has to be made creating style references for a tt:span. Consequently styles
that apply only to tt:span do not need any information about text alignment.
Although the current code do not result in incorrect rendering and still produces conformant XML it needs to be refactored because it is misleading.
The style creation for inline elements (tt:span) includes the style attribute tts:textAlign.
The attribute tts:textAlign applies only to tt:p elements but not to tt:span elements. Therefore no distinction of text alignment has to be made creating style references for a tt:span. Consequently styles that apply only to tt:span do not need any information about text alignment.
Although the current code do not result in incorrect rendering and still produces conformant XML it needs to be refactored because it is misleading.