Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86510 - in trunk/tools/boostbook: test/doxygen xsl/doxygen
From: dnljms_at_[hidden]
Date: 2013-10-28 18:35:44


Author: danieljames
Date: 2013-10-28 18:35:44 EDT (Mon, 28 Oct 2013)
New Revision: 86510
URL: http://svn.boost.org/trac/boost/changeset/86510

Log:
Use language attribute in doxygen2boostbook.

It would be better to preserve doxygen's syntax highlighting, but I'll leave
that for later.

Text files modified:
   trunk/tools/boostbook/test/doxygen/autodoc.gold | 6 +++---
   trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl | 2 +-
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/tools/boostbook/test/doxygen/autodoc.gold
==============================================================================
--- trunk/tools/boostbook/test/doxygen/autodoc.gold Mon Oct 28 18:35:16 2013 (r86509)
+++ trunk/tools/boostbook/test/doxygen/autodoc.gold 2013-10-28 18:35:44 EDT (Mon, 28 Oct 2013) (r86510)
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="yes"?>
 <library-reference id="example_reference"><title>Example Reference</title><header name="boost/example.hpp">
 <namespace name="example">
-<class name="example"><purpose>Documentation for class example. </purpose><description><para>Detailed documentation</para><para><programlisting>void class_code_sample();
+<class name="example"><purpose>Documentation for class example. </purpose><description><para>Detailed documentation</para><para><programlisting language="c++">void class_code_sample();
 </programlisting> </para></description><class name="inner_class"><data-member name="x"><type>int</type></data-member>
 </class><enum name="class_enum"><enumvalue name="enumerator"/></enum>
 <typedef name="documented_type1"><description><para>This type has documentation. </para></description><type>int</type></typedef>
@@ -63,7 +63,7 @@
 <listitem><para>Second list item</para></listitem>
 </itemizedlist>
 Line 1<sbr/>
- Line 2</para><para><programlisting>void foo() {}
+ Line 2</para><para><programlisting language="c++">void foo() {}
 </programlisting></para><para>
 </para></description></struct><struct name="specialization_test"><template>
       <template-type-parameter name="T"/>
@@ -80,7 +80,7 @@
 <data-member name="namespace_const_integer"><type>const int</type></data-member>
 <data-member name="namespace_static_const_integer" specifiers="static"><type>const int</type></data-member>
 <function name="free_function"><type>void</type><parameter name="x"><paramtype>int</paramtype><description><para>Parameter description.</para></description></parameter><description><para>
-<programlisting>void function_code_sample();
+<programlisting language="c++">void function_code_sample();
 </programlisting> </para></description></function>
 <function name="namespace_func"><type>int</type><parameter name="i"><paramtype>int</paramtype><description><para>A function parameter </para></description></parameter><parameter name="j"><paramtype>int</paramtype><description><para>Another </para></description></parameter><description><para>
 

Modified: trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl Mon Oct 28 18:35:16 2013 (r86509)
+++ trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl 2013-10-28 18:35:44 EDT (Mon, 28 Oct 2013) (r86510)
@@ -1708,7 +1708,7 @@
 
   <!-- Handle program listings -->
   <xsl:template match="programlisting" mode="passthrough">
- <programlisting>
+ <programlisting language="c++">
       <xsl:apply-templates mode="programlisting"/>
     </programlisting>
   </xsl:template>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk