diff --git a/Doc/Manual/Doxygen.html b/Doc/Manual/Doxygen.html index d374a9c2f..d530218a3 100644 --- a/Doc/Manual/Doxygen.html +++ b/Doc/Manual/Doxygen.html @@ -949,6 +949,40 @@ file, so they have no comment translated for them.
+ Whitespaces and tables
+ Whitespaces are preserved when translating comments, so it makes
+ sense to have Doxygen comments formatted in a readable way. This
+ includes tables, where tags <th>, <td> and </tr>are translated
+ to '|'. The line after line with <th> tags contains dashes.
+ If we take care about whitespaces, comments in Python are much more
+ readable. Example:
+
+
+/** + * <table border = '1'> + * <caption>Animals</caption> + * <tr><th> Column 1 </th><th> Column 2 </th></tr> + * <tr><td> cow </td><td> dog </td></tr> + * <tr><td> cat </td><td> mouse </td></tr> + * <tr><td> horse </td><td> parrot </td></tr> + * </table> + */ +
+ Animals + | Column 1 | Column 2 | + ----------------------- + | cow | dog | + | cat | mouse | + | horse | parrot | +
+ Overloaded functions
Since all the overloaded functions in c++ are wrapped into one Python
function, PyDoc translator will combine every comment of every
overloaded function and put it in the comment for wrapping function.
@@ -957,7 +991,7 @@ If you intend to use resulting proxy files with Doxygen docs
generator, rather than PyDoc, you may want to turn off translator
completely (doxygen:notranslate feature). Then SWIG will just copy
the comments to the proxy file and reformat them if needed, but all
-the comment content will be left as is. As Doxygen don't support
+the comment content will be left as is. As Doxygen doesn't support
special commands in Python comments
(see Doxygen
docs), you may want to use some tool like doxypy
@@ -1458,6 +1492,16 @@ check-python-test-suite'. To run them individually, type
Examples/test-suite/java $ make doxygen_misc_constructs.cpptest -s
+If test fails, both expected and translated comments are printed to
+std out, but also written to files expected.txt
+and got.txt. Since it is often difficult to find a single
+character difference in several lines of text, we can use some diff
+tool, for example:
+
+ Examples/test-suite/java $ kdiff3 expected.txt got.txt ++ +
| Column 1 | Column 2 |
|---|---|
| cow | dog |
| cat | mouse |
| horse | parrot |
| Column 1 | Column 2 |
| cow | dog |
| cat | mouse |
| horse | parrot |