summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:37:58 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:37:58 (GMT)
commit5576fbf6d0a8baa16fa65a37a172543397ee950a (patch)
treeb859924ab8503fed25bbfbc7ea96b72b9dee34b0 /src/mangen.cpp
parentd4bdeb54df648007d9a2b4a9ec5c2ef3b84f1a3b (diff)
downloadDoxygen-5576fbf6d0a8baa16fa65a37a172543397ee950a.zip
Doxygen-5576fbf6d0a8baa16fa65a37a172543397ee950a.tar.gz
Doxygen-5576fbf6d0a8baa16fa65a37a172543397ee950a.tar.bz2
mods for doxygen-0.49-991106
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index ec2b8ce..ee86282 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -202,17 +202,22 @@ void ManGenerator::docify(const char *str)
void ManGenerator::codify(const char *str)
{
- static char spaces[]=" ";
+ //static char spaces[]=" ";
if (str)
{
const char *p=str;
char c;
+ int spacesToNextTabStop;
while (*p)
{
c=*p++;
switch(c)
{
- case '\t': t << &spaces[col&7]; col+=8-(col&7); break;
+ case '\t': spacesToNextTabStop =
+ Config::tabSize - (col%Config::tabSize);
+ t << spaces.left(spacesToNextTabStop);
+ col+=spacesToNextTabStop;
+ break;
case '\n': t << "\n.br\n"; firstCol=TRUE; col=0; break;
case '\\': t << "\\\\"; col++; break;
default: t << c; firstCol=FALSE; col++; break;