Browse files

Merge pull request #1 from loganlinn/master

Remove trailing whitespace in generated docs
  • Loading branch information...
2 parents dfbb866 + e5369bf commit 6c10d9ea0935479627a3a73c1e7b95fa9727863d @vexxor committed Mar 27, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 plugin/php-doc.vim
View
13 plugin/php-doc.vim
@@ -70,6 +70,7 @@ if has ("user_commands")
" After phpDoc standard
let g:pdv_cfg_CommentHead = "/**"
let g:pdv_cfg_Comment1 = " * "
+let g:pdv_cfg_Comment0 = " *"
let g:pdv_cfg_Commentn = " * "
let g:pdv_cfg_CommentTail = " */"
let g:pdv_cfg_CommentSingle = "//"
@@ -276,8 +277,8 @@ func! PhpDocFunc()
let l:txtBOL = g:pdv_cfg_BOL . l:indent
exe l:txtBOL . g:pdv_cfg_CommentHead . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Comment1 . funcname . " " . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Commentn . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Comment1 . funcname . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Comment0 . g:pdv_cfg_EOL
while (l:parameters != ",") && (l:parameters != "")
" Save 1st parameter
@@ -298,7 +299,7 @@ func! PhpDocFunc()
if l:paramtype != ""
let l:paramtype = " " . l:paramtype
endif
- exe l:txtBOL . g:pdv_cfg_Commentn . "@param" . l:paramtype . " $" . l:paramname . " " . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Commentn . "@param" . l:paramtype . " $" . l:paramname . g:pdv_cfg_EOL
endwhile
if l:static != ""
@@ -351,7 +352,7 @@ func! PhpDocVar()
let l:txtBOL = g:pdv_cfg_BOL . l:indent
exe l:txtBOL . g:pdv_cfg_CommentHead . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Comment1 . l:varname . " " . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Comment1 . l:varname . g:pdv_cfg_EOL
exe l:txtBOL . g:pdv_cfg_Commentn . g:pdv_cfg_EOL
if l:static != ""
exe l:txtBOL . g:pdv_cfg_Commentn . "@static" . g:pdv_cfg_EOL
@@ -400,7 +401,7 @@ func! PhpDocClass()
let l:txtBOL = g:pdv_cfg_BOL . l:indent
exe l:txtBOL . g:pdv_cfg_CommentHead . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Comment1 . l:classname . " " . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Comment1 . l:classname . g:pdv_cfg_EOL
exe l:txtBOL . g:pdv_cfg_Commentn . g:pdv_cfg_EOL
if l:extends != "" && l:extends != "implements"
exe l:txtBOL . g:pdv_cfg_Commentn . "@uses " . l:extends . g:pdv_cfg_EOL
@@ -495,7 +496,7 @@ func! PhpDocDefault()
let l:txtBOL = g:pdv_cfg_BOL . indent
exe l:txtBOL . g:pdv_cfg_CommentHead . g:pdv_cfg_EOL
- exe l:txtBOL . g:pdv_cfg_Commentn . " " . g:pdv_cfg_EOL
+ exe l:txtBOL . g:pdv_cfg_Commentn . g:pdv_cfg_EOL
" Close the comment block.
exe l:txtBOL . g:pdv_cfg_CommentTail . g:pdv_cfg_EOL

0 comments on commit 6c10d9e

Please sign in to comment.