MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _block_width

Method _block_width

src/docx/document.py:233–239  ·  view source on GitHub ↗

A |Length| object specifying the space between margins in last section.

(self)

Source from the content-addressed store, hash-verified

231
232 @property
233 def _block_width(self) -> Length:
234 """A |Length| object specifying the space between margins in last section."""
235 section = self.sections[-1]
236 page_width = section.page_width or Inches(8.5)
237 left_margin = section.left_margin or Inches(1)
238 right_margin = section.right_margin or Inches(1)
239 return Emu(page_width - left_margin - right_margin)
240
241 @property
242 def _body(self) -> _Body:

Callers

nothing calls this directly

Calls 2

InchesClass · 0.90
EmuClass · 0.90

Tested by

no test coverage detected