如何从CodeIgniter上的分页中删除空格?

Dac*_*bah 2 pagination codeigniter spaces

我使用CodeIgniter的分页助手,它的工作原理.但是当我在浏览器中看到结果时,我可以观察到不需要的空间.CodeIgniter似乎以自动方式插入它们.

在我看来:

<div><?php echo $this->pagination->create_links(); ?></div>
Run Code Online (Sandbox Code Playgroud)

在(html)后面生成的代码:

<div>
    &nbsp;
    <a href="http://...example.../6">Previous</a>
    &nbsp;
    <a href="http://...example.../">1</a>
    &nbsp;
    <a href="http://...example.../6">2</a>
    &nbsp;
    <strong>3</strong>
    &nbsp;
    <a href="http://...example.../18">4</a>
    &nbsp;
    <a href="http://...example.../24">5</a>
    &nbsp;
    <a href="http://...example.../18">Next</a>
    &nbsp;
    &nbsp;
    <a href="http://...example.../30">Last</a>
</div>
Run Code Online (Sandbox Code Playgroud)

所以在我的上一个链接之前有一个空格,在我的"Last"链接之前有两个空格.当它被颠倒时(在我的"第一"链接之后的两个空格)发生同样的事情.

为什么?它真的让我大吃一惊!请你知道如何删除它们吗?

任何建议都感激不尽.

解决方案(感谢uzsolt的回答):它适用于first_tag_close和last_tag_open设置为''(有关详细信息,请参阅注释).

uzs*_*olt 6

也许你可以设置num_tag_opennum_tag_close配置变量.