More consistent formatting of examples in documentation

This commit is contained in:
William S Fulton 2017-07-30 17:22:40 +01:00
commit 5779aa8d79
4 changed files with 13 additions and 13 deletions

View file

@ -2565,9 +2565,9 @@ the function callback in the tp_hash slot for the builtin type for <tt>MyClass</
<div class="code"> <div class="code">
<pre> <pre>
static PyHeapTypeObject SwigPyBuiltin__MyClass_type = { static PyHeapTypeObject SwigPyBuiltin__MyClass_type = {
... ...
(hashfunc) myHashFunc, /* tp_hash */ (hashfunc) myHashFunc, /* tp_hash */
... ...
</pre> </pre>
</div> </div>
@ -3087,7 +3087,7 @@ references. Here is an example:
<pre> <pre>
class Foo { class Foo {
public: public:
... ...
}; };
class FooContainer { class FooContainer {
public: public:

View file

@ -389,7 +389,7 @@ For example
/* bar not wrapped unless foo has been defined and /* bar not wrapped unless foo has been defined and
the declaration of bar within foo has already been parsed */ the declaration of bar within foo has already been parsed */
int foo::bar(int) { int foo::bar(int) {
... whatever ... ... whatever ...
} }
</pre> </pre>
</div> </div>

View file

@ -706,7 +706,7 @@ class Foo {
protected: protected:
Foo(); // Not wrapped. Foo(); // Not wrapped.
public: public:
... ...
}; };
</pre> </pre>
</div> </div>
@ -1278,7 +1278,7 @@ equivalent to one generated for the following declaration
<pre> <pre>
class Foo { class Foo {
public: public:
... ...
}; };
void blah(Foo *f); void blah(Foo *f);
@ -4381,9 +4381,9 @@ class Error { };
class Foo { class Foo {
public: public:
... ...
void blah() throw(Error); void blah() throw(Error);
... ...
}; };
</pre> </pre>
</div> </div>
@ -4547,7 +4547,7 @@ class Foo_Impl {
public: public:
int x; int x;
virtual void bar(); virtual void bar();
... ...
}; };
// Smart-pointer wrapper // Smart-pointer wrapper

View file

@ -423,8 +423,8 @@ Variable length arguments may be used in typemap specifications. For example:
<div class="code"> <div class="code">
<pre> <pre>
%typemap(in) (...) { %typemap(in) (...) {
// Get variable length arguments (somehow) // Get variable length arguments (somehow)
... ...
} }
%typemap(in) (const char *fmt, ...) { %typemap(in) (const char *fmt, ...) {