mscarey / AuthoritySpoke

Reading legal authority for the last time
https://authorityspoke.readthedocs.io
Other
34 stars 2 forks source link

collapse line breaks in Factors quoted in Predicate.content_with_entities #54

Closed mscarey closed 5 years ago

mscarey commented 5 years ago

The new line breaks and all-caps labels look good in the str() methods, but they're not okay when the text of a context factor is being inserted in a Predicate.

Maybe I can get rid of the caps and colons, and just delete the whitespace to make the strings fit in the Predicates again. Or maybe I should resurrect the string methods I just deleted, but use them only for insertion in a Predicate.

Here's an example from Cardenas.holdings[1]:

the Fact that 

> the Exhibit in the FORM of testimony
>   STATED BY <parole officer>
>     ASSERTING:
>       the Fact that the <defendant> was addicted to heroin

 was relevant to show <defendant> had a motive to commit an attempted robbery

The Exhibit object is in the middle of the Fact, bringing along its own line breaks and indentation