(texts, sorted_by='left', glue=' ', strip=True)
return s
Join strings in text boxes <texts>, sorting them by <sorted_by> and concatenating them using <glue>.
Join strings in text boxes <texts>, sorting them by <sorted_by> and concatenating them using <glue>.
Join strings in text boxes <texts > sorting them by <sorted_by > and concatenating them using <glue > .
def join_texts(texts, sorted_by='left', glue=' ', strip=True):
    """Join strings in text boxes <texts>, sorting them by <sorted_by> and concatenating them using <glue>."""
    if sorted_by:
        texts = sorted_by_attr(texts, sorted_by)
    
    s = glue.join([t['value'] for t in texts])
    if strip:
        s = s.strip()
    return s
def join_texts ( texts , sorted_by = 'left' , glue = ' ' , strip = True ) : if sorted_by : texts = sorted_by_attr ( texts , sorted_by ) s = glue . join ( [ t [ 'value' ] for t in texts ] ) if strip : s = s . strip ( ) return s