def get_tei_children_for_semantic_content(self, semantic_content: SemanticContentWrapper, context: TeiElementFactoryContext) -> List[etree.ElementBase]:
    LOGGER.debug('semantic_content: %s', semantic_content)
    assert isinstance(semantic_content, SemanticParagraph)
    semantic_paragraph = semantic_content
    result: List[etree.ElementBase] = []
    for flat_parent_semantic_content in iter_flat_paragraph_formula(semantic_paragraph):
        if (not isinstance(flat_parent_semantic_content, SemanticParagraph)):
            result.extend(context.get_tei_child_elements_for_semantic_content(flat_parent_semantic_content))
            continue
        children: T_ElementChildrenList = [context.get_default_attributes_for_semantic_content(flat_parent_semantic_content)]
        pending_whitespace = ''
        for child_semantic_content in flat_parent_semantic_content:
            pending_whitespace = context.append_tei_children_list_and_get_whitespace(children, child_semantic_content, pending_whitespace=pending_whitespace)
        result.append(TEI_E('p', *children))
    return result
def get_tei_children_for_semantic_content(self, semantic_content: SemanticContentWrapper, context: TeiElementFactoryContext) -> List[etree.ElementBase]:
    LOGGER.debug('semantic_content: %s', semantic_content)
    assert isinstance(semantic_content, SemanticParagraph)
    semantic_paragraph = semantic_content
    result: List[etree.ElementBase] = []
    for flat_parent_semantic_content in iter_flat_paragraph_formula(semantic_paragraph):
        if (not isinstance(flat_parent_semantic_content, SemanticParagraph)):
            result.extend(context.get_tei_child_elements_for_semantic_content(flat_parent_semantic_content))
            continue
        children: T_ElementChildrenList = [context.get_default_attributes_for_semantic_content(flat_parent_semantic_content)]
        pending_whitespace = 
        for child_semantic_content in flat_parent_semantic_content:
            pending_whitespace = context.append_tei_children_list_and_get_whitespace(children, child_semantic_content, pending_whitespace=pending_whitespace)
        result.append(TEI_E('p', *children))
    return result