This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, wwwdocs] Fix PR 50642


The following patch overrides the default @smallexample attributes defined by makeinfo. It includes a html.css file where the smallexample attributes are defined to use a medium font size with a light blue background for readability and clarity.

2013-04-30 Shakthi Kannan <>

    PR wwwdocs/50642
    * Use --css-include with makeinfo.
    * gcc/doc/include/html.css: New CSS file for HTML docs.

---              | 2 +-
 gcc/doc/include/html.css | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 gcc/doc/include/html.css

diff --git a/ b/
index bfbaf03..ea70c0d 100644
--- a/
+++ b/
@@ -381,7 +381,7 @@ RUNTEST = @RUNTEST@
 # sub-makes.  It lets flags be given on the command line while still
 # using the makeinfo from the object tree.
 # (Default to avoid splitting info files by setting the threshold high.)
-MAKEINFOFLAGS = --split-size=5000000
+MAKEINFOFLAGS = --split-size=5000000 --css-include=$$r/$(HOST_SUBDIR)/../gcc/doc/include/html.css
 # ---------------------------------------------
 # Programs producing files for the HOST machine
diff --git a/gcc/doc/include/html.css b/gcc/doc/include/html.css
new file mode 100644
index 0000000..6cc0284
--- /dev/null
+++ b/gcc/doc/include/html.css
@@ -0,0 +1,6 @@
+pre.smallexample { 
+    font-family: sans-serif; 
+    font-size: medium; 
+    padding: 4px; 
+    background: #f2f2f9 
\ No newline at end of file

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]