diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-02-04 18:02:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-02-04 18:02:44 (GMT) |
commit | f376c26e3dbe33a773a2f424df4b9c62c8c880ef (patch) | |
tree | 0079dfe633e79bae80c0743850c85fb68f276f60 /src/pre.l | |
parent | 1c75d01c701209261a5b6af831280957681e557f (diff) | |
download | Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.zip Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.tar.gz Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.tar.bz2 |
Release-1.2.5
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -821,6 +821,21 @@ void addDefine() md->setArgumentList(argList); } //printf("Setting initializer for `%s' to `%s'\n",g_defName.data(),g_defText.data()); + int l=g_defLitText.find('\n'); + if (l>0 && g_defLitText.left(l).stripWhiteSpace()=="\\") + { + // strip first line if it only contains a slash + g_defLitText = g_defLitText.right(g_defLitText.length()-l-1); + } + else if (l>0) + { + // align the items on the first line with the items on the second line + int k=l+1; + const char *p=g_defLitText.data()+k; + char c; + while ((c=*p++) && (c==' ' || c=='\t')) k++; + g_defLitText=g_defLitText.mid(l+1,k-l-1)+g_defLitText.stripWhiteSpace(); + } md->setInitializer(g_defLitText); //md->setDefFile(g_yyFileName); |