Skip to content

wipe_formatting function not removing CSS #24

Description

@paxtonfitzpatrick

code:

test_df = data.dropna(subset=['script']).reset_index()
print(cleanup_text(test_df.loc[871, 'script]))

expected output:

THE SAINT

observed output:

THE SAINT BODY { background-color: "#FFFFFF"; font-family: Courier New, Helvetica, sans-serif; font-size:10.0pt } DIV { position:absolute; left:5px; top:20px; width:734px; height:500px; } #loc { font-family:Courier New; font- weight: normal;margin-top:0in; margin-right:1.2in; margin-bottom:0in; margin- left:0.8in;text-transform:uppercase } #slug { font-family:Courier New; font- weight: normal; margin-top:0in; margin-right:1.2in; margin-bottom:0in; margin- left:0.8in; text-transform:uppercase;  }  #act { font-family:Courier New; font-weight: normal;margin-top:0in; margin-right:1.8in; margin-bottom:0in; margin-left:0.8in } #speaker { font-family:Courier New; font-weight: normal;margin-top:0in; margin-right:1.in; margin-bottom:0in; margin- left:2.8in;text-transform:uppercase } #spkdir { font-family:Courier New; font- weight: normal;margin-top:0in; margin-right:2.7in; margin-bottom:0in; margin- left:2.2in } #dia { font-family:Courier New; font-weight: normal;margin- top:0in; margin-right:2.6in; margin-bottom:0in; margin-left:1.6in } #pg { font-family:Courier New; font-weight: normal;margin-top:0in; margin- right:1.75in; margin-bottom:0in; margin-left:6.5in } #right { font- family:Courier New; font-weight: normal;margin-top:0in; margin-right:0.75in; margin-bottom:0in; margin-left:5.0in }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions