From: Vladimír Vondruš Date: Sun, 14 Oct 2018 16:24:40 +0000 (+0200) Subject: doxygen: delimit inline CSS with a semicolon for consistency. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=2551cce6f72ac9c3ae9cd5683f1cd192d0b25cf6;p=blog.git doxygen: delimit inline CSS with a semicolon for consistency. --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 13d9fc9e..14933cd4 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -1052,9 +1052,9 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. sizespec = '' if 'width' in i.attrib: - sizespec = ' style="width: {}"'.format(i.attrib['width']) + sizespec = ' style="width: {};"'.format(i.attrib['width']) elif 'height' in i.attrib: - sizespec = ' style="height: {}"'.format(i.attrib['height']) + sizespec = ' style="height: {};"'.format(i.attrib['height']) caption = i.text if caption: diff --git a/doxygen/test/contents_image/index.html b/doxygen/test/contents_image/index.html index 93394d5b..1902ddf3 100644 --- a/doxygen/test/contents_image/index.html +++ b/doxygen/test/contents_image/index.html @@ -22,7 +22,7 @@

My Project

-

Image:

Image

Figure:

Image
Caption

Explicit width:

Image

Explicit height and a caption:

Image
This is 64 pixels high.
+

Image:

Image

Figure:

Image
Caption

Explicit width:

Image

Explicit height and a caption:

Image
This is 64 pixels high.