Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/docx/oxml/simpletypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class ST_HpsMeasure(XsdUnsignedLong):
def convert_from_xml(cls, str_value: str) -> Length:
if "m" in str_value or "n" in str_value or "p" in str_value:
return ST_UniversalMeasure.convert_from_xml(str_value)
return Pt(int(str_value) / 2.0)
return Pt(float(str_value) / 2.0)

@classmethod
def convert_to_xml(cls, value: int | Length) -> str:
Expand Down