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>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: jzhao, r.landmann, 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-30 23:11:14 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description xuezhi ma 2012-07-09 01:35:50 EDT
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 04:10:59 EDT
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 04:22:32 EDT
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 02:58:09 EDT
Verified in build t207