我正在尝试使用PowerApps的嵌套无序列表创建一个简单的OneNote页面。代码是:
'OneNote(Business)'.CreatePageInSection(
SelectedNoteBook.Key,
SelectedSection.pagesUrl,
"<!DOCTYPE html><html lang='en-US'><head><title>{NoteDate}</title><meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head><body data-absolute-enabled='true' style='font-family:Calibri;font-size:12pt'><div data-id='_default' style='position:absolute;left:48px;top:120px;width:624px'><ul><li>Parent<ul><li><span>Child</span></li></ul></li></ul></body></html>"
);
问题在于,在OneNote 2016中,结果如下所示:
它在“父级”和“子级”之间包含一个空白行,并且在另一个div元素上添加了引号。 尽管Graph Explorer显示了正确的标记(那些引号除外):
<html lang="en-US">
<head>
<title>{NoteDate}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body data-absolute-enabled="true" style="font-family:Calibri;font-size:11pt">
<div data-id="_default" style="position:absolute;left:48px;top:120px;width:624px">
<p style="margin-top:5.5pt;margin-bottom:5.5pt">"</p>
<p style="margin-top:5.5pt;margin-bottom:5.5pt">"</p>
</div>
<div data-id="_default" style="position:absolute;left:48px;top:120px;width:624px">
<ul>
<li><p style="margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt">Parent</span></p>
<ul>
<li><span style="font-size:12pt">Child</span></li>
</ul>
</li>
</ul>
<br />
</div>
</body>
有人知道如何避免这种情况吗?