Bug 838427

Summary: Can't build document when format with space prefix
Product: [Community] Publican Reporter: xuezhi ma <xma>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman+disabled>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: jzhao, rlandman+disabled, rlandman
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-31 03:11:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description xuezhi ma 2012-07-09 05:35:50 UTC
Description of problem:
When I build a document with command:
$ publican build --formats html, html-desktop --langs en-US

html-desktop will not be generated, because before "html-desktop", there is a space.

Version-Release number of selected component (if applicable):
publican 3.0

How reproducible:
always

Steps to Reproduce:
1. publican build --formats html, html-desktop --langs en-US
2.
3.
  
Actual results:
Only html was generated.

Expected results:
html-desktop also can be generated.

Additional info:

Comment 1 Jeff Fearn 🐞 2012-07-09 08:10:59 UTC
Space is not a valid prefix.

The real bug here is that publican isn't catching invalid actions when they aren't the first action.

Comment 2 Jeff Fearn 🐞 2012-07-09 08:22:32 UTC
Added code to check number of actions and report an error if there are too many:

$ publican build --formats html, html-desktop --langs en-US
publican only accepts one action you supplied '2': build & html-desktop
 at /usr/bin/publican line 348

To ssh://git.fedorahosted.org/git/publican.git
   c1b69a6..7db69a5  master -> master

Comment 3 Ruediger Landmann 2012-07-11 06:58:09 UTC
Verified in build t207