]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclet/gtkdoc: Use <code> rather than <blockquote> in for monospace in the gtkdoc...
authorPhilip Withnall <philip@tecnocode.co.uk>
Tue, 14 Aug 2012 21:40:58 +0000 (23:40 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 14 Aug 2012 21:42:16 +0000 (23:42 +0200)
<blockquote> is a block-level element, but Valadoc’s ``backtick syntax``
for monospaced text is meant to be inline. Use <code> instead.

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=681721

src/doclets/gtkdoc/commentconverter.vala

index 9582f4d30ea8452d0789005fe3547b2a53fdb6cd..b585a0d8c4f4f877266ee61ad37c1eba98ccbd74 100644 (file)
@@ -208,8 +208,8 @@ public class Gtkdoc.CommentConverter : ContentVisitor {
                        break;
 
                case Run.Style.MONOSPACED:
-                       current_builder.append ("<blockquote>");
-                       tag = "blockquote";
+                       current_builder.append ("<code>");
+                       tag = "code";
                        break;
                }
                run.accept_children (this);