3
T'íc ã @ s2 d Z ddlZddlZddlZddlZddlZddlmZm Z m
Z
mZmZ ddl
mZ ddlmZmZmZ ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZmZ ddlmZm Z m!Z! ddl"m#Z# dd
l$m%Z% ddl&m'Z' erðddl(m)Z) e#j*e+Z,e-e.e-dddZ/G dd deZ0G dd de%eZdS )z/docutils writers handling Sphinx' custom nodes.é N)Ú
TYPE_CHECKINGÚIterableÚOptionalÚTupleÚcast)Únodes)ÚElementÚNodeÚText)ÚHTMLTranslator)ÚWriter)Úaddnodes)ÚBuilder)ÚRemovedInSphinx50WarningÚRemovedInSphinx60Warning)Ú_Ú__Úadmonitionlabels)Úlogging)ÚSphinxTranslator)Úget_image_size)ÚStandaloneHTMLBuilder)ÚlengthÚscaleÚreturnc C sP t jd| }|s| S |dkr | S |j \}}t|| d }dt||f S dS )z/Multiply *length* (width or height) by *scale*.z^(\d*\.?\d*)\s*(\S*)$éd z%s%sN)ÚreÚmatchÚgroupsÚfloatÚint)r r ÚmatchedÚamountÚunitÚresult© r% ú5/tmp/pip-build-gk9425m9/sphinx/sphinx/writers/html.pyÚmultiply_length! s r'