Update of /cvsroot/phpweather/phpweather/docs/src
In directory usw-pr-cvs1:/tmp/cvs-serv5730
Modified Files:
phpdoc2latex.php
Log Message:
I'm just playing with the formatting... Now things like $this->var is
also marked as a variable.
Index: phpdoc2latex.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/docs/src/phpdoc2latex.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- phpdoc2latex.php 2001/07/13 08:35:37 1.2
+++ phpdoc2latex.php 2001/07/14 19:43:31 1.3
@@ -40,7 +40,7 @@
``word''. */
function escape($str) {
/* This marks the variables. */
- $str =
ereg_replace('(&?\$)([\'a-zA-Z_][a-zA-Z0-9_]*(\['[\'a-zA-Z_][a-zA-Z0-9_]*'\])?)',
+ $str =
+ereg_replace('(&?\$)([\'a-zA-Z_][a-zA-Z0-9_]*(->[\'a-zA-Z_][a-zA-Z0-9_]*)?((\['[\'a-zA-Z_][a-zA-Z0-9_]*'\])+)?)',
'\variable{\1}{\2}', $str);
/* This takes care of functions. */
@@ -88,7 +88,7 @@
echo "%%%%%%%%%%%%%%%%\n% Start of class " . $attributes['NAME'] . ".\n\n";
echo '\section{\class{' . escape($attributes['NAME']) . "}}\n\n";
- echo '\begin{figure}[!hb]' . "\n";
+ echo '\begin{figure}[!h]' . "\n";
echo '\centering' . "\n";
echo '\includegraphics{' . $attributes['NAME'] . "}\n";
echo '\caption{The relationship between \class{' .
@@ -232,7 +232,7 @@
if (!empty($parameters)) {
if (count($parameters) == 1) {
out(wordwrap('\item[Parameters] \textbf{' . $parameters[0]['type'] . ' ' .
- escape($parameters[0]['prefix'] . $parameters[0]['name']) . '} ' .
+ escape($parameters[0]['prefix'] . $parameters[0]['name']) .
+'}\hspace{\labelsep} ' .
escape($parameters[0]['description']) . "\n\n"));
} else {
out('\item[Parameters]\mbox{}' . "\n\n");
_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins