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

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

 



Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]