Mercurial > projects > dil
comparison trunk/src/dil/doc/Doc.d @ 751:8caf18892c1b
Improved DDocEmitter and fixed bugs.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 11 Feb 2008 22:39:58 +0100 |
parents | 32a8ddd330f8 |
children | c7a5499faa77 |
comparison
equal
deleted
inserted
replaced
750:40a52ea29e3b | 751:8caf18892c1b |
---|---|
151 return makeString(begin, end); | 151 return makeString(begin, end); |
152 } | 152 } |
153 | 153 |
154 void scanSummaryAndDescription(char* p, char* end) | 154 void scanSummaryAndDescription(char* p, char* end) |
155 { | 155 { |
156 assert(p < end); | 156 assert(p <= end); |
157 char* sectionBegin = p; | 157 char* sectionBegin = p; |
158 // Search for the end of the first paragraph. | 158 // Search for the end of the first paragraph. |
159 end--; // Decrement end, so we can look ahead one character. | 159 end--; // Decrement end, so we can look ahead one character. |
160 while (p < end && !(*p == '\n' && p[1] == '\n')) | 160 while (p < end && !(*p == '\n' && p[1] == '\n')) |
161 p++; | 161 p++; |