[valadoc] doclet/gtkdoc: Escape text and source code



commit fdada53286ea9ae5128b2bb330762f1e051d4a5a
Author: Florian Brosch <flo brosch gmail com>
Date:   Sun Oct 14 00:59:23 2012 +0200

    doclet/gtkdoc: Escape text and source code

 src/doclets/gtkdoc/commentconverter.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/doclets/gtkdoc/commentconverter.vala b/src/doclets/gtkdoc/commentconverter.vala
index b758910..5f79f1a 100644
--- a/src/doclets/gtkdoc/commentconverter.vala
+++ b/src/doclets/gtkdoc/commentconverter.vala
@@ -227,7 +227,7 @@ public class Gtkdoc.CommentConverter : ContentVisitor {
   
 	public override void visit_source_code (SourceCode code) {
 		current_builder.append ("<programlisting>");
-		current_builder.append (code.code);
+		current_builder.append (Markup.escape_text (code.code));
 		current_builder.append ("</programlisting>");
 	}
   
@@ -294,7 +294,7 @@ public class Gtkdoc.CommentConverter : ContentVisitor {
 	}
   
 	public override void visit_text (Text t) {
-		current_builder.append (t.content);
+		current_builder.append (Markup.escape_text (t.content));
 		t.accept_children (this);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]