Skip to content

The result contains extra newline #39

Description

@DanteAndroid

image

Left is original doc file, right is file I exported with following code
import docx2txt
import os

def write_file(name, content):
    with open(name, 'w') as file:
        file.write(content)

files = os.listdir()

for file in files:
    if file.endswith('.docx'):
       text = docx2txt.process(file)
       write_file(file.replace('.docx', '.srt'), text)

Activity

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

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