elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.82k stars 392 forks source link

Exception from ShowForm #89

Open greasycat opened 5 years ago

greasycat commented 5 years ago

Exceptions raised after clicking on the language buttons

Annotation 2019-05-23 185712
renankaic commented 5 years ago

I'm having this issue too

elvirbrk commented 5 years ago

Can you please provide OneNote page that is having this issue. It seems that some character on page is causing it.

adhadse commented 4 years ago

image Here you go


def Clean_names(City_name): 
    # Search for opening bracket in the name followed by 
    # any characters repeated any number of times 
    if re.search('\(.*', City_name): 

        # Extract the position of beginning of pattern 
        pos = re.search('\(.*', City_name).start() 

        # return the cleaned name 
        return City_name[:pos] 

    else: 
        # if clean up needed return the same name 
        return City_name 
adhadse commented 4 years ago

I don't know why but the Quick Style Checkbox fixed it...problem fixed for me though.