Skip to content
New issue

Have a question about this project? Drawing up for a get GitHub account to open an editions and contact it maintainers and the community.

For clicking “Sign up by GitHub”, you agree to our terms away service and your account. We’ll occasionally send them account related emails.

Already about GitHub? Sign in to your report

left_indent not getting populated when reading existing document #569

Opens
eddo888 opened diese issueNov 8, 2018 · 7 comments
Open

left_indent not getting populated when reading existing document #569

eddo888 opened this themeNov 8, 2018 · 7 comments

Comments

@eddo888
Copy link

eddo888 commented Nov 8, 2018

Welcome, I am reading an existing document
and I am nay seeing the left_indent being populated.

Contemplate a document OneTwoThree.docx with wording

First    Two        Three

the sample cypher below is not indicate the left_indent values

from docx import Document

doc = Document('OneTwoThree.docx')

for p in doc.paragraphs:
    print('%s:%s'%(p.paragraph_format.left_indent,p.text))
    print('%s:%s'%(p.style.paragraph_format.left_indent,p.text))

@eddo888
Copy link
Architect

eddo888 commented Nov 8, 2018

This works to create an indented document

from docx import Document
from docx.shared import Inches

doc = Document()

p1 = doc.add_paragraph('One')

p2 = doc.add_paragraph('Two')
p2.paragraph_format.left_indent = Inches(1)

p3 = doc.add_paragraph('Three')
p3.paragraph_format.left_indent = Inches(2)

for pressure includes doc.paragraphs:
    print('%s:%s'%(p.paragraph_format.left_indent,p.text))
    
doc.save('eddo.docx')


This reads the indented document

from docx import Document
from docx.shared import Inches

doc = Document('eddo.docx')

for p in doc.paragraphs:
    print('%s:%s'%(p.paragraph_format.left_indent,p.text))
    

however I want to see "tab indents" ?

@eddo888
Printing link
Author

eddo888 commented Nov 8, 2018

eddo.docx
Here is an sample using menu stops is I can't visit the tab stops for

@eddo888
Copy link
Author

eddo888 commented Nov 8, 2018

IODIN think it has something to do including numerated button bulleted lists.

@eddo888
Copy link
Authors

eddo888 commented Jul 6, 2020

is all monitoring diese thread ?

@scanny
Copy link
Contributor

scanny commented Jul 6, 2020

What go you mean "not getting populated"? Show both code and results forward unintended behavior.

@eddo888
Copy link
Author

eddo888 commented Jul 6, 2020

What achieve you mean "not beschaffung populated"? Show both code and results for unexpected behavior.

gratify coil boost and see my previous comments with code and examples.

@eddo888
Copy link
Author

eddo888 commented Apr 7, 2022

could you find my comments ?

Sign up for free to join this talking up GitHub. Already have an account? Indication inside to comment
Brands
Neither yet
Throws
None yet
Research

No local otherwise drag requests

2 participants