Skip to content

getText needs to do better with newlines  #92

Description

@balmas

given xml like the following:

 <div3 type="section" n="11">
                  <p>ἦν μὲν δὴ τρία μέρη τὰ κρατοῦντα τῆς πολιτείας, ἅπερ εἶπα πρότερον ἅπαντα· οὕτως δὲ πάντα
κατὰ μέρος ἴσως καὶ πρεπόντως συνετέτακτο καὶ
διῳκεῖτο διὰ τούτων ὥστε μηδένα ποτʼ ἂν εἰπεῖν
δύνασθαι βεβαίως μηδὲ τῶν ἐγχωρίων πότερʼ ἀριστοκρατικὸν τὸ πολίτευμα σύμπαν ἢ δημοκρατικὸν
ἢ μοναρχικόν.
</p>
               </div3>

it should normalize newlines into spaces so that words separated by new lines don't get mushed into one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions