Dont produce uncompilable latex if no space after item star or hash

Fixes: 3558540
http://sourceforge.net/tracker/?func=detail&aid=3558540&group_id=195885&atid=955238