Hi,
I just applied a patch from tobigun that adds useful --ignore-leading
command-line option, see
http://pasdoc.sipsolutions.net/IgnoreLeadingOption for documentation.
The patch is applied to both trunk/ and branches/PasDoc2/ (trying to
keep them synchronized :) ). However, when applying to
branches/PasDoc2/, I skipped the most important chunk: modification to
ExtractDocComment to actually make this feature work. Reason: this part
of PasDoc_Parser.pas is quite different in branches/PasDoc2/. And I was
too lazy to investigate how to make analogous changes there, to get
identical --ignore-leading behavior (and, possibly, almost identical
implementation) as in trunk/.
DoDi, you know this code, can you make the changes to your
branches/PasDoc2/ to make --ignore-leading work there? You have
testcases for this in tests/ok_ignore_leading_* files (their correct
output is uploaded to correct_output in WWW, so you can do
./download_correct_tests_output.sh and compare). I'm attaching
ExtractDocComment_part.patch which is exactly the part of the patch that
I did not apply to PasDoc2 --- you should modify this and apply it where
it suits best.
Thanks,
Michalis
|