[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff-commit] groff/src/preproc/eqn sqrt.cpp
From: |
Eric S. Raymond |
Subject: |
[Groff-commit] groff/src/preproc/eqn sqrt.cpp |
Date: |
Sat, 03 Feb 2007 05:33:03 +0000 |
CVSROOT: /sources/groff
Module name: groff
Changes by: Eric S. Raymond <esr> 07/02/03 05:33:03
Modified files:
src/preproc/eqn: sqrt.cpp
Log message:
The -TMathML option for eqn.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/src/preproc/eqn/sqrt.cpp?cvsroot=groff&r1=1.2&r2=1.3
Patches:
Index: sqrt.cpp
===================================================================
RCS file: /sources/groff/groff/src/preproc/eqn/sqrt.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- sqrt.cpp 26 May 2005 21:02:00 -0000 1.2
+++ sqrt.cpp 3 Feb 2007 05:33:03 -0000 1.3
@@ -150,6 +150,7 @@
void sqrt_box::output()
{
+ if (output_format == troff) {
printf("\\Z" DELIMITER_CHAR);
printf("\\s[\\n[" SMALL_SIZE_FORMAT "]u]", uid);
printf("\\v'-\\n[" SUP_RAISE_FORMAT "]u'", uid);
@@ -165,6 +166,11 @@
printf(DELIMITER_CHAR);
printf("\\h'\\n[" WIDTH_FORMAT "]u'", uid);
+ } else if (output_format == mathml) {
+ printf("<msqrt>");
+ p->output();
+ printf("</msqrt>");
+ }
}
void sqrt_box::debug_print()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Groff-commit] groff/src/preproc/eqn sqrt.cpp,
Eric S. Raymond <=