From 8213f6c38e2fc48e5ea37c8fb512b17d070c07fd Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Tue, 22 Jan 2013 13:45:11 +0100 Subject: [PATCH] docs: process code blocks similar to Markdown Wrap pre-formatted example code in elements. This works similar to Markdown[1] code blocks[2]: Every line indented with at least 2 spaces is considered a code block and gets wrapped in
 and  tags.

Look at the documentation for e.g. virStreamSend for before-and-after
effects.

[1] http://daringfireball.net/projects/markdown/
[2] http://daringfireball.net/projects/markdown/syntax#precode
---
 docs/newapi.xsl | 96 +++++++++++++++++++++++++++++++++++++------------
 1 file changed, 74 insertions(+), 22 deletions(-)

diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 7fa0f26889..d62839ad6f 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -150,6 +150,67 @@
     
   
 
+
+  
+  
+  
+  
+  
+  
+  
+    
+    
+
+    
+
+    
+      
+        
+          
+            
+              
+                
+              
+              
+                
+              
+            
+          
+          
+        
+      
+      
+        

+          
+            
+              
+            
+            
+              
+            
+          
+          
+            

+          
+        
+
+ +

+ + + +

+
+
+ + + + + +
+ @@ -157,28 +218,19 @@ - - -

- - - -

-
- -

- - - -

-
-
- - - - - - + + + + + + + + + + + + +