INNER CODE UNIT · Python
add_blockquote
sangrokjung/claude-forge · scripts/md-to-docx/convert.py:296
def add_blockquote(doc: Document, lines: List[str]):
"""인용 블록 - 좌측 Indigo 바 + 연한 배경"""
table = doc.add_table(rows=1, cols=1)
table.alignment = WD_TABLE_ALIGNMENT.CENTER
cell = table.cell(0, 0)
set_cell_shading(cell, QUOTE_BG)
set_cell_margins(cell, top=60, bottom=60, left=160, right=120)
# Left accent bar + other borders
set_cell_borders(
cell,
left=(18, QUOTE_BAR, 'single'),
top=(2, BORDER_COLOR, 'single'),
bottom=(2, BORDER_COLOR, 'single'),
right=(2, BORDER_COLOR, 'single'),
)