Replace tabs with spaces in html docs
wkhtmltopdf is not expanding tabs within <pre> elements to 8 spaces as it should. Workaround the problem by converting all tabs to an appropriate number of spaces.
This commit is contained in:
parent
4e67d5c7a8
commit
3763beb489
25 changed files with 758 additions and 749 deletions
|
|
@ -3051,8 +3051,8 @@ For example, suppose you had a structure like this:
|
|||
|
||||
<div class="code"><pre>
|
||||
struct SomeObject {
|
||||
float value[4];
|
||||
...
|
||||
float value[4];
|
||||
...
|
||||
};
|
||||
</pre></div>
|
||||
|
||||
|
|
@ -3166,9 +3166,9 @@ checking the values of function arguments. For example:</p>
|
|||
%module math
|
||||
|
||||
%typemap(check) double posdouble {
|
||||
if ($1 < 0) {
|
||||
croak("Expecting a positive number");
|
||||
}
|
||||
if ($1 < 0) {
|
||||
croak("Expecting a positive number");
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
|
@ -4511,22 +4511,22 @@ The following excerpt from the Python module illustrates this:
|
|||
/* Note: %typecheck(X) is a macro for %typemap(typecheck,precedence=X) */
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_INTEGER)
|
||||
int, short, long,
|
||||
unsigned int, unsigned short, unsigned long,
|
||||
signed char, unsigned char,
|
||||
long long, unsigned long long,
|
||||
const int &, const short &, const long &,
|
||||
const unsigned int &, const unsigned short &, const unsigned long &,
|
||||
const long long &, const unsigned long long &,
|
||||
enum SWIGTYPE,
|
||||
bool, const bool &
|
||||
int, short, long,
|
||||
unsigned int, unsigned short, unsigned long,
|
||||
signed char, unsigned char,
|
||||
long long, unsigned long long,
|
||||
const int &, const short &, const long &,
|
||||
const unsigned int &, const unsigned short &, const unsigned long &,
|
||||
const long long &, const unsigned long long &,
|
||||
enum SWIGTYPE,
|
||||
bool, const bool &
|
||||
{
|
||||
$1 = (PyInt_Check($input) || PyLong_Check($input)) ? 1 : 0;
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_DOUBLE)
|
||||
float, double,
|
||||
const float &, const double &
|
||||
float, double,
|
||||
const float &, const double &
|
||||
{
|
||||
$1 = (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input)) ? 1 : 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue