[
http://jira.codehaus.org/browse/QDOX-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169839#action_169839
]
Robert Scholte commented on QDOX-146:
-------------------------------------
I've had a look at the lexer and I think it's a bit too complecated right now.
Why not read per line instead of per word? Everything after a
javaDocComment-linestart can be copied as it is, remaining spaces, asterisks,
etc.
The only reason I can think of is detecting doclet-tags.
For the doclet case you could use javaDocComment-linestart followed by an '@',
push state and read until the space and pop back.
Are there cases which won't fit this strategy?
If this seems solid enough, then most lexer-tests specific for javadocs have to
be rewritten. Any ideas?
> Retaining whitespace in comments
> --------------------------------
>
> Key: QDOX-146
> URL: http://jira.codehaus.org/browse/QDOX-146
> Project: QDox
> Issue Type: New Feature
> Components: Java API, Parser
> Affects Versions: 1.6.3
> Reporter: Grégory Joseph
> Priority: Minor
>
> As per the dev-list, it might be useful, in some cases, to preserve
> whitespace in javadoc comments:
> http://www.nabble.com/Retaining-whitespace-in-comments-td18738908.html
> Since it is not *always* desired, I'd suggest adding a method and/or
> parameter so that users can get one or the other as they see fit.
> I've tried looking into the source to see where this was happening, but
> haven't been able to locate it precisely.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email