Skip to content

Can't import WD_ALIGN_PARAGRAPH,How to align the text at both ends #601

@shuguoli68

Description

@shuguoli68

I want the text to be justified, but I can't use from docx.enum.text import WD_ALIGN_PARAGRAPH, I get an error: "Cannot find reference 'WD_ALIGN_PARAGRAPH' in 'text.py' less... (Ctrl+F1)"
I found the WD_PARAGRAPH_ALIGNMENT class in test.py and tried to import from docx.enum.text import WD_PARAGRAPH_ALIGNMENT, but this class doesn't seem to have any useful methods. Can you help me? Any help will be appreciated!
My goal: to align the text at both ends instead of the default left alignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions