chiark / gitweb /
doxygen: delimit inline CSS with a semicolon for consistency.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Oct 2018 16:24:40 +0000 (18:24 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Oct 2018 18:17:49 +0000 (20:17 +0200)
doxygen/dox2html5.py
doxygen/test/contents_image/index.html

index 13d9fc9e89627aa382fa6547a1b1e66e37209dba..14933cd43ad41a5ba121cc33444b215c80785cf3 100755 (executable)
@@ -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:
index 93394d5bce513a9b52802dcd7152b5bc220f9b1b..1902ddf3cb06c7b7ce8b36cd4ae6e8067f0f911d 100644 (file)
@@ -22,7 +22,7 @@
         <h1>
           My Project
         </h1>
-<p>Image:</p><img class="m-image" src="tiny.png" alt="Image" /><p>Figure:</p><figure class="m-figure"><img src="tiny.png" alt="Image" /><figcaption>Caption</figcaption></figure><p>Explicit width:</p><img class="m-image" src="tiny.png" alt="Image" style="width: 128px" /><p>Explicit height and a caption:</p><figure class="m-figure"><img src="tiny.png" alt="Image" style="height: 64px" /><figcaption>This is 64 pixels high.</figcaption></figure>
+<p>Image:</p><img class="m-image" src="tiny.png" alt="Image" /><p>Figure:</p><figure class="m-figure"><img src="tiny.png" alt="Image" /><figcaption>Caption</figcaption></figure><p>Explicit width:</p><img class="m-image" src="tiny.png" alt="Image" style="width: 128px;" /><p>Explicit height and a caption:</p><figure class="m-figure"><img src="tiny.png" alt="Image" style="height: 64px;" /><figcaption>This is 64 pixels high.</figcaption></figure>
       </div>
     </div>
   </div>