Unnecessary space here: "topic.id %>" >" before last ">" and there should be no space before </li>.