Modify

Ticket #14 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by mrook

  • Owner set to mrook
  • Status changed from new to assigned

Accepting this ticket.

comment:2 Changed 4 years ago by mrook

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r46.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.