Added support for footnotes (move them to the correct clauses if detected...
Added support for footnotes (move them to the correct clauses if detected somewhere in the document). Also refactored functions into a new Document class
# This is a hanging paragraph. Remove the text from the current clause.
print(f'[yellow]Hanging paragraph in clause "{clause.title}"{"(removed)"ifnotincludeHangingParagraphselse"(kept)"}')
ifnotincludeHangingParagraphs:
self.clauses[i].lines=[]
else:
self.clauses[i].lines=[Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>")]+[Line()]+self.clauses[i].lines