Modify ↓
Ticket #14 (closed defect: fixed)
PHPDocumentorTask adds single-quotes in title
| Reported by: | anonymous | Owned by: | mrook |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2.0 |
| Component: | Version: | 2.2.0RC1 | |
| Keywords: | Cc: |
Description
If I enter title="DOC-TITLE" in the build file, the generated doc will have 'DOC-TITLE' as the title (with the quotes).
It looks like this is due to the function PHPDocumentorTask::constructArguments(), this line:
$arguments.= "-ti '" . $this->title . "' ";
I'm on a windows machine so the single-quotes can't be used to put a string for an argument. This error also prevents me from putting a space in the title. This seems to fix the problem:
$arguments.= '-ti "' . $this->title . '" ';
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Accepting this ticket.