[英]Is rtf syntax for bullet point correct?
I have to make an rtf to html converter. 我必须将rtf转换为html转换器。 I have an already coded application but it has some bugs.. Whenever i enter a bullet point it crashes
我有一个已经编码的应用程序,但是它有一些错误。每当我输入一个项目符号时,它就会崩溃
Original Rtf 原始Rtf
{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Segoe UI;}{\\f1\\fnil\\fcharset0 Arial;}{\\f2\\fnil\\fcharset2 Symbol;}} {\\colortbl ;\\red0\\green0\\blue0;} \\viewkind4\\uc1\\pard\\cf1\\lang3081\\f0\\fs18 Paragraph writing is the foundation of all essay writing, whether the form is expository, persuasive, narrative, or creative.
{\\ rtf1 \\ ansi \\ ansicpg1252 \\ deff0 \\ deflang1033 {\\ fonttbl {\\ f0 \\ fnil \\ fcharset0 Segoe UI;} {\\ f1 \\ fnil \\ fcharset0 Arial;} {\\ f2 \\ fnil \\ fcharset2 Symbol;}} {\\ colortbl; \\ red0 \\ green0 \\ blue0;} \\ viewkind4 \\ uc1 \\ pard \\ cf1 \\ lang3081 \\ f0 \\ fs18段落写作是所有文章写作的基础,无论表格是说明性,说服性,叙事性还是创意性。 In order to write a \\ul\\b\\i good paragraph\\ulnone\\b0\\i0 .
为了写一个\\ ul \\ b \\ i好段\\ ulnone \\ b0 \\ i0。 \\par \\lang1033 \\par \\pard{\\pntext\\f2\\''B7\\tab}{*\\pn\\pnlvlblt\\pnf2\\pnindent0{\\pntxtb\\''B7}}\\fi-165\\li165 Element 1\\cf0\\f1\\fs24 \\par }
\\ par \\ lang1033 \\ par \\ pard {\\ pntext \\ f2 \\''B7 \\ tab} {* \\ pn \\ pnlvlblt \\ pnf2 \\ pnindent0 {\\ pntxtb \\''B7}} \\ fi-165 \\ li165元素1 \\ cf0 \\ f1 \\ fs24 \\ par}
It crashes because of the line 由于行而崩溃
\\pard{\\pntext\\f2\\''B7\\tab}{*\\pn\\pnlvlblt\\pnf2\\pnindent0{\\pntxtb\\''B7}}
\\ pard {\\ pntext \\ f2 \\''B7 \\ tab} {* \\ pn \\ pnlvlblt \\ pnf2 \\ pnindent0 {\\ pntxtb \\''B7}}
If I remove this line the Rtf is converted to html successfully. 如果删除此行,则Rtf将成功转换为html。 I am new to Rtf syntax.
我是Rtf语法的新手。 So my question is...is this Rtf syntax correct in the first place?
所以我的问题是……这种Rtf语法首先正确吗?
RTF规范显示\\''
无效- \\'
应该后面跟一个十六进制值,但是在您的示例中,它后面是另一个撇号(然后是十六进制值)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.