We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I am trying to convert RTF files which contains a lot of sub- and superscript parts (like Ug=0,8 W/(m2K)).
Is this somehow possible?
My code looks like following:
var rtf = File.ReadAllText(rtfFilePath); using var w = new StringWriter(); using var md = new PlainTextWriter(w); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); Rtf.ToHtml(rtf, md, new RtfHtmlSettings { Indent = true, NewLineChars = "\n", NewLineOnAttributes = true, IndentChars = "\t" }); md.Flush(); return w.ToString();
After that I get it like this: Ug=0,8 W/(m2K)
EDIT: Apparently this issue is the PlainTextWriter, because if I look at the html string, the <sub> and <sup> tags are present.
PlainTextWriter
<sub>
<sup>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I am trying to convert RTF files which contains a lot of sub- and superscript parts (like Ug=0,8 W/(m2K)).
Is this somehow possible?
My code looks like following:
After that I get it like this: Ug=0,8 W/(m2K)
EDIT: Apparently this issue is the
PlainTextWriter
, because if I look at the html string, the<sub>
and<sup>
tags are present.The text was updated successfully, but these errors were encountered: