core-nlg icon indicating copy to clipboard operation
core-nlg copied to clipboard

Add a method to force capitalize the next word

Open FabienGiely opened this issue 5 years ago • 1 comments

FabienGiely avatar Jan 31 '20 10:01 FabienGiely

I use this on some projects:

def start_of_sentence(self):
    """
    :return:a hidden dot to capitalize the next start of sentence
    """
    return self.nlg_tags('span', '.', style='display:none')

maybe something like that before the write and then delete the span could do the trick.

printfhere avatar Apr 30 '20 14:04 printfhere