summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:37:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:37:58 (GMT)
commit916d6d5c6f6c9d14c4c9a636582671c81447f54a (patch)
treeb859924ab8503fed25bbfbc7ea96b72b9dee34b0 /src/mangen.cpp
parenta54eecdf4b3c961ff41bc5d3ea6f21713e08f903 (diff)
downloadDoxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.zip
Doxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.tar.gz
Doxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.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;