Skip to content

Commit

Permalink
Version 0.2.11
Browse files Browse the repository at this point in the history
Remove trailing blank characters where they are not needed. (Thanks to Lukas Grässlin)
  • Loading branch information
babaybus authored and vim-scripts committed Nov 6, 2010
1 parent 3f15243 commit 6d73093
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions plugin/DoxygenToolkit.vim
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
" DoxygenToolkit.vim
" Brief: Usefull tools for Doxygen (comment, author, license).
" Version: 0.2.10
" Date: 2009/08/08
" Version: 0.2.11
" Date: 2009/08/26
" Author: Mathias Lorente
"
" TODO: add automatically (option controlled) in/in out flags to function
" parameters
" TODO: (Python) Check default paramareters defined as list/dictionnary/tuple
"
" Note: Remove trailing blank characters where they are not needed.
"
" Note: 'extern' keyword added in list of values to ignore for return type.
"
" Note: Correct bugs related to templates and add support for throw statement
Expand Down Expand Up @@ -744,14 +746,14 @@ function! <SID>DoxygenCommentFunc()
endif
for param in l:doc.templates
if( s:insertEmptyLine == 1 )
exec "normal o".s:interCommentTag
exec "normal o".substitute( s:interCommentTag, "[[:blank:]]*$", "", "" )
let s:insertEmptyLine = 0
endif
exec "normal o".s:interCommentTag.g:DoxygenToolkit_templateParamTag_pre.g:DoxygenToolkit_templateParamTag_post.param
endfor
for param in l:doc.params
if( s:insertEmptyLine == 1 )
exec "normal o".s:interCommentTag
exec "normal o".substitute( s:interCommentTag, "[[:blank:]]*$", "", "" )
let s:insertEmptyLine = 0
endif
exec "normal o".s:interCommentTag.g:DoxygenToolkit_paramTag_pre.g:DoxygenToolkit_paramTag_post.param
Expand All @@ -760,7 +762,7 @@ function! <SID>DoxygenCommentFunc()
" Returned value
if( l:doc.returns == "yes" )
if( g:DoxygenToolkit_compactDoc != "yes" )
exec "normal o".s:interCommentTag
exec "normal o".substitute( s:interCommentTag, "[[:blank:]]*$", "", "" )
endif
exec "normal o".s:interCommentTag.g:DoxygenToolkit_returnTag
endif
Expand All @@ -774,7 +776,7 @@ function! <SID>DoxygenCommentFunc()
endif
for param in l:doc.throws
if( s:insertEmptyLine == 1 )
exec "normal o".s:interCommentTag
exec "normal o".substitute( s:interCommentTag, "[[:blank:]]*$", "", "" )
let s:insertEmptyLine = 0
endif
exec "normal o".s:interCommentTag.g:DoxygenToolkit_throwTag_pre.g:DoxygenToolkit_throwTag_post.param
Expand Down Expand Up @@ -831,7 +833,7 @@ function! s:StartDocumentationBlock()
if( s:startCommentTag != s:interCommentTag )
"exec "normal O".s:startCommentTag
exec "normal O".strpart( s:startCommentTag, 0, 1 )
exec "normal A".strpart( s:startCommentTag, 1 )
exec "normal A".substitute( strpart( s:startCommentTag, 1 ), "[[:blank:]]*$", "", "" )
let l:insertionMode = "o"
else
let l:insertionMode = "O"
Expand Down

0 comments on commit 6d73093

Please sign in to comment.