diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-02-04 18:02:44 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-02-04 18:02:44 (GMT) |
commit | 1b90a1cf58b6b94d00e28d8212828956e8f9d177 (patch) | |
tree | 0079dfe633e79bae80c0743850c85fb68f276f60 /src/pre.l | |
parent | f676cb79536e8d4d7a7dc2fb83b757065939eefb (diff) | |
download | Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.zip Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.tar.gz Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.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); |