[libvirt] [PATCH 2/2] docs: Limit the maximum width of info text to 75em for better readability

Claudio Bley cbley at av-test.de
Tue Jan 8 15:19:32 UTC 2013


Signed-off-by: Claudio Bley <cbley at av-test.de>
---
 docs/libvirt.css |    4 ++++
 docs/newapi.xsl  |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/docs/libvirt.css b/docs/libvirt.css
index 5123ed6..b6f5c4b 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -412,3 +412,7 @@ table.data tbody td.n {
     background: rgb(255,220,220);
     text-align: center;
 }
+
+div.info {
+    max-width: 75em;
+}
diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 24831ee..6b87682 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -286,7 +286,7 @@
     <xsl:variable name="name" select="string(@name)"/>
     <h3><a name="{$name}"><code><xsl:value-of select="$name"/></code></a></h3>
     <pre><xsl:text>#define </xsl:text><xsl:value-of select="$name"/></pre>
-    <div>
+    <div class='info'>
     <xsl:call-template name="formattext">
       <xsl:with-param name="text" select="info"/>
     </xsl:call-template>
@@ -425,7 +425,7 @@
     <xsl:text>)
 </xsl:text>
     </pre>
-    <div>
+    <div class='info'>
     <xsl:call-template name="formattext">
       <xsl:with-param name="text" select="info"/>
     </xsl:call-template>
@@ -502,7 +502,7 @@
     <xsl:text>
 </xsl:text>
     </pre>
-    <div>
+    <div class='info'>
     <xsl:call-template name="formattext">
       <xsl:with-param name="text" select="info"/>
     </xsl:call-template>
-- 
1.7.9.5




More information about the libvir-list mailing list