CVSROOT:        /sources/groff
Module name:    groff
Changes by:     Eric S. Raymond <esr>   07/02/03 05:32:54

Modified files:
        src/preproc/eqn: list.cpp 

Log message:
        The -TMathML option for eqn.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/src/preproc/eqn/list.cpp?cvsroot=groff&r1=1.2&r2=1.3

Patches:
Index: list.cpp
===================================================================
RCS file: /sources/groff/groff/src/preproc/eqn/list.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- list.cpp    26 May 2005 21:02:00 -0000      1.2
+++ list.cpp    3 Feb 2007 05:32:53 -0000       1.3
@@ -208,8 +208,10 @@
 
 void list_box::output()
 {
+  if (output_format == mathml)
+    printf("<mrow>");
   for (int i = 0; i < list.len; i++) {
-    if (i > 0) {
+    if (output_format == troff && i > 0) {
       int n = compute_spacing(is_script,
                              list.p[i-1]->spacing_type,
                              list.p[i]->spacing_type);
@@ -218,6 +220,8 @@
     }
     list.p[i]->output();
   }
+  if (output_format == mathml)
+    printf("</mrow>");
 }
 
 void list_box::handle_char_type(int st, int ft)


_______________________________________________
Groff-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to