Skip to content

double spaces at the end of the string. #4

@ulhasgupta1

Description

@ulhasgupta1

if we have double spaces at the end of the string then issue of out of bound would arise.

possible solution :
`elif(extraspaceremover=="on"):

    analyzed=re.sub(' +',' ', djtext)

    params = {'purpose': 'Removed NewLines', 'analyzed_text': analyzed}
    # Analyze the text
    return render(request, 'analyze.html', params)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions