summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index f986531..689c274 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -107,12 +107,13 @@ static void replaceCommentMarker(const char *s,int len)
}
if (blanks>0)
{
- while (blanks>1)
+ while (blanks>2)
{
ADDCHAR(' ');
blanks--;
}
- ADDCHAR('*');
+ if (blanks>1) ADDCHAR('*');
+ ADDCHAR(' ');
}
// copy comment line to output
ADDARRAY(p,len-(p-s));