CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Two questions concerning formatting and structure (http://www.cfd-online.com/Forums/openfoam/60815-two-questions-concerning-formatting-structure.html)

lakeat May 23, 2008 12:40

Dear Maintainers, Good even
 
Dear Maintainers,

Good evening!
1. How to post double spaces? it's annoying every time I tried to post some code, many spaces are shorten to one space!

2. Can the topic structure be modified to a more detailed way.
eg.,
devided
OpenFOAM Message Board: OpenFOAM: Installation
into
Installation--Windows;
Installation--Linux;
Installation--Mac;
Installation--Unix;
...
or some places for dummy.

Daniel

7islands May 23, 2008 19:42

Hi Daniel, @1: I use
 
 
Hi Daniel,

@1: I use <pre> - </pre> tags to format code retaining indents as in this post. You have to escape closing brace (}) with a prepending \ (i. e. "\}"). This seems to be an undocumented feature by the way.

Takuya

lakeat May 23, 2008 20:48

Great! Thank you, Takuya. Here
 
Great! Thank you, Takuya. Here's a test.
<pre>......
if (bufferSizeName.size())
{
int bufferSize = atoi(bufferSizeName.c_str());

if (bufferSize)
{
MPI_Buffer_attach(new char[bufferSize], bufferSize);
}
}
else
{
FatalErrorIn("Pstream::init(int& argc, char**& argv)")
<< "Pstream::init(int& argc, char**& argv) : "
<< "environment variable MPI_BUFFER_SIZE not defined"
<< Foam::abort(FatalError);
}
# endif
......</pre>


Daniel


All times are GMT -4. The time now is 14:57.