【问题标题】:HTML tidy output option not workingHTML tidy 输出选项不起作用
【发布时间】:2018-07-28 22:25:07
【问题描述】:

HTML tidy 中的命令行输出选项不起作用。我在命令行窗口中运行“整洁”。代码运行并将格式化的 HTML 代码输出到屏幕,然后在该行停止(挂起)并且不再继续。

tidy infile -o outfile

输出:

</div>
</body>
</html>

我可以获得输出文件的唯一方法是tidy infile &gt; outfile

有什么想法吗?

【问题讨论】:

    标签: htmltidy


    【解决方案1】:

    与文档相反,正确的命令顺序是 tidy -o outfile infile 所有命令开关必须在 infile 名称之前。

        `tidy infile -o outfile` -- wrong format
        `tidy -o outfile infile` -- correct format
    

    【讨论】:

      猜你喜欢
      • 2018-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-14
      • 1970-01-01
      相关资源
      最近更新 更多