我最近使用本指令在窗口中安装了xmllint。但是,当我对任何xml文件运行xmllint时,它会在行的开头添加双引号。示例
<?xml version="1.0"?>
<library path="lib/libplugin_triangle">
<class type="triangle::cPlugingTriangle" base_class_type="regular_polygon::cRegularPolygon">
<description>This is a triangle plugin.</description>
</class>
</library>变成了
<?xml version="1.0"?>
<library path="lib/libplugin_triangle">
" " <class type="triangle::cPlugingTriangle" base_class_type="regular_polygon::cRegularPolygon">
" " " " <description>This is a triangle plugin.</description>
" " </class>
</library>我使用windows环境变量工具处理了XMLLINT_INDET的几个定义。但什么都没发生。
这些双引号在XML中合法吗?
发布于 2020-11-27 11:17:21
不,这些引号不是XML标准。问题是我的编辑(vim)中的linter经理(ALE)。它将XMLLINT_INDENT变量设置为文本“”。那是啤酒里的臭虫。然后,xmllint放置这些字符。我建议对此拉请求中的错误进行修正,
https://stackoverflow.com/questions/64946321
复制相似问题