有没有办法防止 tidy 包装在标签中?
Is there a way to prevent tidy from wrapping in an tag?
我正在处理一些测试用例,并且 tidy
将输出与理想输出进行比较。但是我遇到了一个奇怪的地方,它包裹在标签的中间。是否有我缺少的配置设置(除了关闭包装)来让它在标签不在里面之前中断?
<html>
<head>
<title></title>
</head>
<body>
<form>
<input id="$nodeid[0]" /><input id=
"$nodeid[1]" /><input id="$nodeid[2]" /><input id=
"$nodeid[3]" />
</form>
</body>
</html>
我目前的配置是。
$config = array(
'indent' => true,
'output-xhtml' => true,
'literal-attributes' => true,
'preserve-entities' =>true,
'markup' => TRUE,
'show-warnings' =>TRUE,
'char-encoding' =>'utf8',
'punctuation-wrap' => true,
'wrap' => 60);
用 output-xml => true
替换 output-xhml => true
有效。
我正在处理一些测试用例,并且 tidy
将输出与理想输出进行比较。但是我遇到了一个奇怪的地方,它包裹在标签的中间。是否有我缺少的配置设置(除了关闭包装)来让它在标签不在里面之前中断?
<html>
<head>
<title></title>
</head>
<body>
<form>
<input id="$nodeid[0]" /><input id=
"$nodeid[1]" /><input id="$nodeid[2]" /><input id=
"$nodeid[3]" />
</form>
</body>
</html>
我目前的配置是。
$config = array(
'indent' => true,
'output-xhtml' => true,
'literal-attributes' => true,
'preserve-entities' =>true,
'markup' => TRUE,
'show-warnings' =>TRUE,
'char-encoding' =>'utf8',
'punctuation-wrap' => true,
'wrap' => 60);
用 output-xml => true
替换 output-xhml => true
有效。