Damn, I see that i'm really making a beginner-mistake here.
I tried something new that gave me some output already but it's still not what it's suposed to be:
The definition of the getText function stays thesame and after that I wrote this:
While the paragraphtest.docx is actualy a document with this text inside:
(I made it just to test if there isn't something wrong with the word-document I'm using itself)
It looks like there's something wrong with the word documents which I'm supposed to use as input. Originaly they are .doc files that I'm supposed to automaticly convert to .docx files. The automaticly-part of that is something that took me a while to figure out how to do it so to save time I did a manual conversion but... I guess that is where something went wrong :/
But anyway, I'm wondering why getText only prints one paragraph for me now.
(using pycharm btw)
I tried something new that gave me some output already but it's still not what it's suposed to be:
The definition of the getText function stays thesame and after that I wrote this:
def main(): print("the main is executed") t = getText('paragraphtest.docx') print(t) main()this gives me as output:
Quote:The main is executed
This is paragraph 1.
While the paragraphtest.docx is actualy a document with this text inside:
Quote:This is paragraph 1.
This is paragraph 2.
This is paragraph 3.
(I made it just to test if there isn't something wrong with the word-document I'm using itself)
It looks like there's something wrong with the word documents which I'm supposed to use as input. Originaly they are .doc files that I'm supposed to automaticly convert to .docx files. The automaticly-part of that is something that took me a while to figure out how to do it so to save time I did a manual conversion but... I guess that is where something went wrong :/
But anyway, I'm wondering why getText only prints one paragraph for me now.
(using pycharm btw)