Title: No. of columns are wrong in some table objects · Issue #852 · python-openxml/python-docx · GitHub
Open Graph Title: No. of columns are wrong in some table objects · Issue #852 · python-openxml/python-docx
X Title: No. of columns are wrong in some table objects · Issue #852 · python-openxml/python-docx
Description: @scanny I am using docx lib to parse my docx files, and in one of the file i found the issue for the table object. If i check the XML(document.xml) for the document it shows 3 gridCol node but in
Open Graph Description: @scanny I am using docx lib to parse my docx files, and in one of the file i found the issue for the table object. If i check the XML(document.xml) for the document it shows 3 gridCol node but in <...
X Description: @scanny I am using docx lib to parse my docx files, and in one of the file i found the issue for the table object. If i check the XML(document.xml) for the document it shows 3 gridCol node but in &...
Opengraph URL: https://github.com/python-openxml/python-docx/issues/852
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No. of columns are wrong in some table objects","articleBody":"@scanny \r\nI am using docx lib to parse my docx files, and in one of the file i found the issue for the table object. If i check the XML(document.xml) for the document it shows 3 `gridCol` node but in \u003cw:tr> tag it show only two cells. And so when i loop through all the rows it is giving the wrong cell values. What can be the reason? If word document is wrong then how we can correct the document and if Something which we can do in the code.\r\nGridCol tag code is given like this\r\n```\r\n\u003cw:tblGrid>\r\n \u003cw:gridCol w:w=\"1808\"/>\r\n \u003cw:gridCol w:w=\"8656\"/>\r\n \u003cw:gridCol w:w=\"8634\"/>\r\n \u003c/w:tblGrid> \r\n```\r\nHere is the \u003cw:tr> xml \r\n```\r\n\u003cw:tr w:rsidR=\"008B0C52\" w:rsidRPr=\"00445981\" w14:paraId=\"35CC8211\" w14:textId=\"77777777\" w:rsidTr=\"00D74CDB\">\r\n \u003cw:trPr>\r\n \u003cw:gridAfter w:val=\"1\"/>\r\n \u003cw:cnfStyle w:val=\"100000000000\" w:firstRow=\"1\" w:lastRow=\"0\" w:firstColumn=\"0\" w:lastColumn=\"0\" w:oddVBand=\"0\" w:evenVBand=\"0\" w:oddHBand=\"0\" w:evenHBand=\"0\" w:firstRowFirstColumn=\"0\" w:firstRowLastColumn=\"0\" w:lastRowFirstColumn=\"0\" w:lastRowLastColumn=\"0\"/>\r\n \u003cw:wAfter w:w=\"8634\" w:type=\"dxa\"/>\r\n \u003c/w:trPr>\r\n \u003cw:tc>\r\n \u003cw:tcPr>\r\n \u003cw:cnfStyle w:val=\"001000000000\" w:firstRow=\"0\" w:lastRow=\"0\" w:firstColumn=\"1\" w:lastColumn=\"0\" w:oddVBand=\"0\" w:evenVBand=\"0\" w:oddHBand=\"0\" w:evenHBand=\"0\" w:firstRowFirstColumn=\"0\" w:firstRowLastColumn=\"0\" w:lastRowFirstColumn=\"0\" w:lastRowLastColumn=\"0\"/>\r\n \u003cw:tcW w:w=\"1808\" w:type=\"dxa\"/>\r\n \u003cw:tcBorders>\r\n \u003cw:top w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003cw:left w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003cw:bottom w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003cw:right w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003c/w:tcBorders>\r\n \u003cw:shd w:val=\"clear\" w:color=\"auto\" w:fill=\"auto\"/>\r\n \u003c/w:tcPr>\r\n \u003cw:p w14:paraId=\"22A73613\" w14:textId=\"77777777\" w:rsidR=\"008B0C52\" w:rsidRPr=\"00445981\" w:rsidRDefault=\"008B0C52\" w:rsidP=\"008B0C52\">\r\n \u003cw:pPr>\r\n \u003cw:pStyle w:val=\"ListParagraph\"/>\r\n \u003cw:numPr>\r\n \u003cw:ilvl w:val=\"0\"/>\r\n \u003cw:numId w:val=\"1\"/>\r\n \u003c/w:numPr>\r\n \u003cw:spacing w:after=\"0\" w:line=\"240\" w:lineRule=\"auto\"/>\r\n \u003cw:rPr>\r\n \u003cw:rFonts w:cstheme=\"minorHAnsi\"/>\r\n \u003c/w:rPr>\r\n \u003c/w:pPr>\r\n \u003c/w:p>\r\n \u003c/w:tc>\r\n \u003cw:tc>\r\n \u003cw:tcPr>\r\n \u003cw:tcW w:w=\"8656\" w:type=\"dxa\"/>\r\n \u003cw:tcBorders>\r\n \u003cw:top w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003cw:left w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003cw:bottom w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003cw:right w:val=\"none\" w:sz=\"0\" w:space=\"0\" w:color=\"auto\"/>\r\n \u003c/w:tcBorders>\r\n \u003cw:shd w:val=\"clear\" w:color=\"auto\" w:fill=\"auto\"/>\r\n \u003c/w:tcPr>\r\n \u003cw:p w14:paraId=\"03D24C79\" w14:textId=\"77777777\" w:rsidR=\"008B0C52\" w:rsidRPr=\"00445981\" w:rsidRDefault=\"008B0C52\" w:rsidP=\"00D74CDB\">\r\n \u003cw:pPr>\r\n \u003cw:pStyle w:val=\"ListParagraph\"/>\r\n \u003cw:ind w:left=\"0\"/>\r\n \u003cw:cnfStyle w:val=\"100000000000\" w:firstRow=\"1\" w:lastRow=\"0\" w:firstColumn=\"0\" w:lastColumn=\"0\" w:oddVBand=\"0\" w:evenVBand=\"0\" w:oddHBand=\"0\" w:evenHBand=\"0\" w:firstRowFirstColumn=\"0\" w:firstRowLastColumn=\"0\" w:lastRowFirstColumn=\"0\" w:lastRowLastColumn=\"0\"/>\r\n \u003cw:rPr>\r\n \u003cw:rFonts w:cstheme=\"minorHAnsi\"/>\r\n \u003cw:b w:val=\"0\"/>\r\n \u003cw:bCs w:val=\"0\"/>\r\n \u003c/w:rPr>\r\n \u003c/w:pPr>\r\n \u003cw:r w:rsidRPr=\"00445981\">\r\n \u003cw:rPr>\r\n \u003cw:rFonts w:cstheme=\"minorHAnsi\"/>\r\n \u003c/w:rPr>\r\n \u003cw:t>Firm: General information\u003c/w:t>\r\n \u003c/w:r>\r\n \u003c/w:p>\r\n \u003c/w:tc>\r\n \u003c/w:tr>\r\n```\r\n\r\nCode to loop through table rows.\r\n```\r\nfor i in d.tables:\r\n print (i._column_count)\r\n for j in i.rows:\r\n for c in j.cells:\r\n print (c.text)\r\n break\r\n```","author":{"url":"https://github.com/BHAUTIK04","@type":"Person","name":"BHAUTIK04"},"datePublished":"2020-08-04T09:27:43Z","url":"https://github.com/python-openxml/python-docx/issues/852"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e60a55fd-a29b-590c-dd6e-f5a1802d8a61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDFC:C814F:9A4743:B78321:6AFF6B79 |
| html-safe-nonce | 38729979224c6aa5ca70d645670bff7191ac618330ca57201c4044c5d566eb9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREZDOkM4MTRGOjlBNDc0MzpCNzgzMjE6NkFGRjZCNzkiLCJ2aXNpdG9yX2lkIjoiMjU2MjM1NDYxMTI5NzkzODI5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 32c8dc9bd5adc6227667b67004888b617faa9176490aee9fbbaf748fafa75c42 |
| hovercard-subject-tag | issue:672647298 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/852/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2df1fc11ff432e5c4d57d25ec0b94d915d0cd7bab7a050d96ea4b60adbcd59d9/python-openxml/python-docx/issues/852 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2df1fc11ff432e5c4d57d25ec0b94d915d0cd7bab7a050d96ea4b60adbcd59d9/python-openxml/python-docx/issues/852 |
| og:image:alt | @scanny I am using docx lib to parse my docx files, and in one of the file i found the issue for the table object. If i check the XML(document.xml) for the document it shows 3 gridCol node but in <... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BHAUTIK04 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6d580fc7098c193d7866bf290c4c2b4859a153e87379f44161f35a4495e6b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec5dd94a369dad6e9ce618a1705cbe3b618a2863 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width