fix: reflow for bullets
This commit is contained in:
@@ -239,15 +239,7 @@ class ReflowParagraphData(BaseModel):
|
||||
leading: float
|
||||
oldLineCount: int = 1
|
||||
align: Literal["left", "justify"] = "left"
|
||||
# Push-down column left edge (defaults to columnLeft). For a bullet item the text reflows from
|
||||
# a hanging indent (columnLeft) but the push-down spans the full width from pushColumnLeft so
|
||||
# bullet markers and items below move together.
|
||||
pushColumnLeft: float | None = None
|
||||
# Optional WYSIWYG mode: exact visual line breaks from the live editor (one inner list of
|
||||
# styled fragments per line). When present the engine emits these breaks verbatim.
|
||||
lines: list[list[ReflowRun]] | None = None
|
||||
# Optional WYSIWYG mode: exact visual line breaks from the live editor (one inner list of
|
||||
# styled fragments per line). When present the engine emits these breaks verbatim.
|
||||
lines: list[list[ReflowRun]] | None = None
|
||||
|
||||
|
||||
@@ -259,8 +251,6 @@ class ReflowParagraphOperation(BaseModel):
|
||||
|
||||
|
||||
class DecorationData(BaseModel):
|
||||
# Text-markup annotation (underline/strikeout/squiggly) over one or more text
|
||||
# lines — quadpoints in PDF top-down space, mirroring HighlightData.
|
||||
quadPoints: list[HighlightQuadPoint]
|
||||
color: str = "#000000"
|
||||
author: str = "User"
|
||||
@@ -336,8 +326,6 @@ def apply_edits_impl(document_id: str, request: EditsRequest):
|
||||
if not doc_info:
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Document not found")
|
||||
|
||||
# Enforce document permissions (defense-in-depth; the UI also gates these).
|
||||
# Done before the try so the 403 isn't rewritten to 400 by the broad handler.
|
||||
perms = doc_info.get("permissions") or {}
|
||||
for op in request.operations:
|
||||
required = _OP_PERMISSION.get(op.type)
|
||||
|
||||
Reference in New Issue
Block a user