{"action":"closed","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/pydocx/issues/243","repository_url":"https://api.github.com/repos/CenterForOpenScience/pydocx","labels_url":"https://api.github.com/repos/CenterForOpenScience/pydocx/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/pydocx/issues/243/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/pydocx/issues/243/events","html_url":"https://github.com/CenterForOpenScience/pydocx/issues/243","id":247117974,"number":243,"title":"Question: How to turn off included style tag in html head element?","user":{"login":"bitscompagnie","id":19829530,"avatar_url":"https://avatars2.githubusercontent.com/u/19829530?v=4","gravatar_id":"","url":"https://api.github.com/users/bitscompagnie","html_url":"https://github.com/bitscompagnie","followers_url":"https://api.github.com/users/bitscompagnie/followers","following_url":"https://api.github.com/users/bitscompagnie/following{/other_user}","gists_url":"https://api.github.com/users/bitscompagnie/gists{/gist_id}","starred_url":"https://api.github.com/users/bitscompagnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitscompagnie/subscriptions","organizations_url":"https://api.github.com/users/bitscompagnie/orgs","repos_url":"https://api.github.com/users/bitscompagnie/repos","events_url":"https://api.github.com/users/bitscompagnie/events{/privacy}","received_events_url":"https://api.github.com/users/bitscompagnie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-01T15:56:07Z","updated_at":"2017-08-01T16:26:05Z","closed_at":"2017-08-01T16:26:05Z","body":"Hello PyDocx team,\r\n\r\nI have below code to generate html files from word files in a folder and it is working fine.\r\nHow can I turn off the embedded style in the output html file's head tag? And possibly replace it with a link tag to an external css file. \r\n```\r\nsourcedir = os.listdir(\"sourcedocx/\") \r\n# Iterate over all docx files in the source directory\r\nfor file in sourcedir:\r\n    html = PyDocX.to_html(open('sourcedocx/' + file, 'rb'))\r\n    # Write the result to a new file in the output directory\r\n    with codecs.open('outdocxhtml/' + file + '.html', 'w', 'utf-8') as f:\r\n        # Write each file to the destination folder\r\n        f.write(html)\r\nprint('Done writing html files')\r\n```\r\nI am a new to Python and would like to apologize for any inconvenience.\r\nThanks for your help.\r\n"}}
{"actor":{"display_login":"bitscompagnie"}}