Skip to content
New issue

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

Handle \line as newline in RTF2HTMLConverterRFCCompliant #7

Open
basinilya opened this issue Jun 27, 2021 · 0 comments
Open

Handle \line as newline in RTF2HTMLConverterRFCCompliant #7

basinilya opened this issue Jun 27, 2021 · 0 comments

Comments

@basinilya
Copy link

basinilya commented Jun 27, 2021

Within an HTML <pre> block Outlook does not use \par, but instead it uses \line not enclosed within htmlrtf pair. This newline should be preserved by RTF2HTMLConverterRFCCompliant. Example: outlook-message-parser attachments.msg

{\rtf1\ansi\ansicpg1252\fromhtml1 \fbidis \deff0
{\*\htmltag128 <pre>}
\htmlrtf {
\pard\plain\f1\fs20 \htmlrtf0 \htmlrtf {
\htmlrtf0 \htmlrtf {\cf4 \fs20 \f5 \htmlrtf0 Received: from ABMAIL13.ci.atlantic-beach.fl.us (10.10.10.21) by\line
 ABMAIL13.ci.atlantic-beach.fl.us (10.10.10.21) with Microsoft SMTP Server\line
 (TLS) id 15.0.1076.9; Mon, 11 Apr 2016 09:08:47 -0400\line
Received:}}\htmlrtf0
{\*\htmltag136 </pre>}\htmlrtf }\htmlrtf0 
}*\

Expected:

<pre>Received: from ABMAIL13.ci.atlantic-beach.fl.us (10.10.10.21) by
 ABMAIL13.ci.atlantic-beach.fl.us (10.10.10.21) with Microsoft SMTP Server
 (TLS) id 15.0.1076.9; Mon, 11 Apr 2016 09:08:47 -0400
Received:</pre>

Actual:

<pre>Received: from ABMAIL13.ci.atlantic-beach.fl.us (10.10.10.21) by ABMAIL13.ci.atlantic-beach.fl.us (10.10.10.21) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Mon, 11 Apr 2016 09:08:47 -0400Received:</pre>
@basinilya basinilya changed the title Handle \line as newline Handle \line as newline in RTF2HTMLConverterRFCCompliant Jun 27, 2021
basinilya added a commit to basinilya/rtf-to-html that referenced this issue Jun 27, 2021
basinilya added a commit to basinilya/rtf-to-html that referenced this issue Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant