This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194469 - \n in Doxygen comment not shown in code assistance
Summary: \n in Doxygen comment not shown in code assistance
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 10:43 UTC by gnSascha
Modified: 2011-03-07 11:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of incorrect code assistance (12.47 KB, image/png)
2011-01-19 10:43 UTC, gnSascha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gnSascha 2011-01-19 10:43:20 UTC
Created attachment 105141 [details]
Screenshot of incorrect code assistance

A Doxygen description containing special characters like \n fails to display correctly in code assistance. 

\\n is supposed to work according to:
http://www.stack.nl/~dimitri/doxygen/commands.html#cmdbackslash

Doxygen part in header.c:

/**
 * removes trailing \\n
 * @param s
 * @return string without \\n
 */
char * chomp(char * s)
{...}

Autocompletion (Ctrl+Space) on chomp():
----------------------------------------
removes trailing :
Parameter:
 s 
Returns:
 the string without :
----------------------------------------

Please note the ":" instead of the expected "\n"

Problem exists on 6.9.1 and 7.0 Beta (Build 201011152355)
Comment 1 Vladimir Voskresensky 2011-03-05 17:45:02 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/90c9d7762e52
Comment 2 Quality Engineering 2011-03-06 05:39:12 UTC
Integrated into 'main-golden', will be available in build *201103060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/90c9d7762e52
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #194469 -  \n in Doxygen comment not shown in code assistance
Comment 3 gnSascha 2011-03-07 11:46:29 UTC
Verified in NetBeans IDE Dev (Build 201103070000)
Thanks a lot.