Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复一个downDocx.py的bug #3

Open
tuhaolam opened this issue Jul 10, 2018 · 0 comments
Open

修复一个downDocx.py的bug #3

tuhaolam opened this issue Jul 10, 2018 · 0 comments

Comments

@tuhaolam
Copy link

59 for item in jsonRet['body']:
60 if item['t'] != 'word':
61 continue
#增加_enter key存在与否的验证
62 if first == 0 or (item['ps'] and item['ps'].has_key('_enter') and item['ps']['_enter'] == 1):
63 first = 1
64 pg = document.add_paragraph()
65 if item['ps'] and item['ps'].has_key('_enter') and item['ps']['_enter'] == 1:
66 continue
67 run = pg.add_run(item['c'])
68 # 添加格式;分析不出来,就统一宋体、五号

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant